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.

fix leveldb mount bug

liwenlong0502a159764262
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go
index 99c4f3c34e..c656da4caa 100644
--- a/weed/storage/disk_location.go
+++ b/weed/storage/disk_location.go
@@ -168,6 +168,7 @@ func (l *DiskLocation) UnloadVolume(vid VolumeId) error {
if !ok {
return fmt.Errorf("Volume not loaded, VolumeId: %d", vid)
}
+ l.volumes[vid].Close()
delete(l.volumes, vid)
return nil
}