mirror of https://github.com/etcd-io/bbolt.git
Merge pull request #64 from kwf2030/master
fix funlock error when call db.Close on windowspull/65/head v1.3.1-coreos.3
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…
Reference in New Issue