mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-07-14 16:18:15 +00:00
Merge pull request #64 from kwf2030/master
fix funlock error when call db.Close on windows
This commit is contained in:
commit
3c6cbfb299
@ -62,7 +62,7 @@ func flock(db *DB, mode os.FileMode, exclusive bool, timeout time.Duration) erro
|
||||
if timeout != 0 {
|
||||
t = time.Now()
|
||||
}
|
||||
fd := db.file.Fd()
|
||||
fd := f.Fd()
|
||||
var flag uint32 = flagLockFailImmediately
|
||||
if exclusive {
|
||||
flag |= flagLockExclusive
|
||||
|
Loading…
x
Reference in New Issue
Block a user