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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
stop when dn.parent is nil
Chris Lu2c7dad589dcb
diff --git a/weed/topology/topology_event_handling.go b/weed/topology/topology_event_handling.goindex e2dcfca060..44ab331141 100644--- a/weed/topology/topology_event_handling.go+++ b/weed/topology/topology_event_handling.go@@ -56,5 +56,7 @@ func (t *Topology) UnRegisterDataNode(dn *DataNode) {dn.UpAdjustVolumeCountDelta(-dn.GetVolumeCount())dn.UpAdjustActiveVolumeCountDelta(-dn.GetActiveVolumeCount())dn.UpAdjustMaxVolumeCountDelta(-dn.GetMaxVolumeCount())- dn.Parent().UnlinkChildNode(dn.Id())+ if dn.Parent() != nil {+ dn.Parent().UnlinkChildNode(dn.Id())+ }}