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.

issue 49: unwritable volume become writable after compacting

Chris Lu030905714b2f
diff --git a/go/topology/topology_compact.go b/go/topology/topology_compact.go
index 6394c59c64..4ba77a4a54 100644
--- a/go/topology/topology_compact.go
+++ b/go/topology/topology_compact.go
@@ -72,9 +72,9 @@ func batchVacuumVolumeCommit(vl *VolumeLayout, vid storage.VolumeId, locationlis
} else {
glog.V(0).Infoln("Complete Commiting vacuum", vid, "on", dn.Url())
}
- }
- if isCommitSuccess {
- vl.setVolumeWritable(vid)
+ if isCommitSuccess {
+ vl.SetVolumeAvailable(dn, vid)
+ }
}
return isCommitSuccess
}