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 nil

Chris Lu003b6245e701
diff --git a/weed/topology/topology_vacuum.go b/weed/topology/topology_vacuum.go
index 04c26bc4df..89eefefc7e 100644
--- a/weed/topology/topology_vacuum.go
+++ b/weed/topology/topology_vacuum.go
@@ -108,7 +108,7 @@ func batchVacuumVolumeCommit(grpcDialOption grpc.DialOption, vl *VolumeLayout, v
resp, err := volumeServerClient.VacuumVolumeCommit(context.Background(), &volume_server_pb.VacuumVolumeCommitRequest{
VolumeId: uint32(vid),
})
- if resp.IsReadOnly {
+ if resp != nil && resp.IsReadOnly {
isReadOnly = true
}
return err