1
0
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:
James Mills 2019-03-14 21:50:23 +10:00
parent 52b6c74a21
commit 9f0a357ca0
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6

View File

@ -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 {