diff --git a/bitcask.go b/bitcask.go index 5aa2df4..c876052 100644 --- a/bitcask.go +++ b/bitcask.go @@ -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 {