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.

Increase compact revision during each compaction

chrislusf66317b843838
diff --git a/go/storage/volume_vacuum.go b/go/storage/volume_vacuum.go
index 4f35a8149a..2510277718 100644
--- a/go/storage/volume_vacuum.go
+++ b/go/storage/volume_vacuum.go
@@ -65,6 +65,7 @@ func (v *Volume) copyDataAndGenerateIndexFile(dstName, idxName string) (err erro
err = ScanVolumeFile(v.dir, v.Collection, v.Id, v.needleMapKind,
func(superBlock SuperBlock) error {
+ superBlock.CompactRevision++
_, err = dst.Write(superBlock.Bytes())
return err
}, true, func(n *Needle, offset int64) error {