mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
avoid possible racing issue if leveldb or boltdb is used.
remove the to-be-generated files during commit fix https://github.com/chrislusf/seaweedfs/issues/738
This commit is contained in:
parent
31ed352ab6
commit
a362261972
|
@ -69,6 +69,10 @@ func (v *Volume) commitCompact() error {
|
|||
|
||||
//glog.V(3).Infof("Pretending to be vacuuming...")
|
||||
//time.Sleep(20 * time.Second)
|
||||
|
||||
os.RemoveAll(v.FileName() + ".ldb")
|
||||
os.RemoveAll(v.FileName() + ".bdb")
|
||||
|
||||
glog.V(3).Infof("Loading Commit file...")
|
||||
if e = v.load(true, false, v.needleMapKind, 0); e != nil {
|
||||
return e
|
||||
|
|
Loading…
Reference in a new issue