Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

avoid possible racing issue if leveldb or boltdb is used.

Chris Lua36226197241
diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.go
index ba3ab67351..d8a58e35cb 100644
--- a/weed/storage/volume_vacuum.go
+++ b/weed/storage/volume_vacuum.go
@@ -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