Skip to content

Commit 3649c10

Browse files
committed
Remove unneeded check.
1 parent f743639 commit 3649c10

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

vfs/memdb/memdb.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ type memDB struct {
8383
size int64
8484

8585
// +checklocks:lockMtx
86-
shared int
86+
shared int32
8787
// +checklocks:lockMtx
8888
reserved bool
8989
// +checklocks:lockMtx
@@ -227,9 +227,6 @@ func (m *memFile) Lock(lock vfs.LockLevel) error {
227227

228228
case vfs.LOCK_EXCLUSIVE:
229229
if m.lock < vfs.LOCK_PENDING {
230-
if m.pending {
231-
return sqlite3.BUSY
232-
}
233230
m.lock = vfs.LOCK_PENDING
234231
m.pending = true
235232
}

0 commit comments

Comments
 (0)