Skip to content

Commit

Permalink
Merge pull request #64 from kwf2030/master
Browse files Browse the repository at this point in the history
fix funlock error when call db.Close on windows
  • Loading branch information
xiang90 authored Nov 1, 2017
2 parents 60725ac + 434419a commit 3c6cbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bolt_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c6cbfb

Please sign in to comment.