mirror of
https://github.com/taigrr/bitcask
synced 2025-01-18 04:03:17 -08:00
Remove lock file on Close()
This commit is contained in:
parent
52b6c74a21
commit
9f0a357ca0
@ -34,6 +34,7 @@ type Bitcask struct {
|
||||
func (b *Bitcask) Close() error {
|
||||
defer func() {
|
||||
b.Flock.Unlock()
|
||||
os.Remove(b.Flock.Path())
|
||||
}()
|
||||
|
||||
for _, df := range b.datafiles {
|
||||
|
Loading…
x
Reference in New Issue
Block a user