Skip to content

Commit

Permalink
fix funlock error when call db.Close on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kwf2030 committed Nov 1, 2017
1 parent 60725ac commit 434419a
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 434419a

Please sign in to comment.