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.

volume: skip readonly checking when Destroy()

Chris Lu5e9c65469ecf
diff --git a/weed/storage/volume_read_write.go b/weed/storage/volume_read_write.go
index ae05331a44..c0b1ca933c 100644
--- a/weed/storage/volume_read_write.go
+++ b/weed/storage/volume_read_write.go
@@ -40,10 +40,6 @@ func (v *Volume) isFileUnchanged(n *needle.Needle) bool {
// Destroy removes everything related to this volume
func (v *Volume) Destroy() (err error) {
- if v.readOnly {
- err = fmt.Errorf("%s is read-only", v.dataFile.Name())
- return
- }
if v.isCompacting {
err = fmt.Errorf("volume %d is compacting", v.Id)
return