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
[MOD] fix a bug.if node is nil will get an panic.
张远浩7a7f4cecbb69
diff --git a/go/topology/node.go b/go/topology/node.goindex 3b6d55ce9e..f48f18236b 100644--- a/go/topology/node.go+++ b/go/topology/node.go@@ -211,8 +211,8 @@ func (n *NodeImpl) LinkChildNode(node Node) {func (n *NodeImpl) UnlinkChildNode(nodeId NodeId) {node := n.children[nodeId]- node.SetParent(nil)if node != nil {+ node.SetParent(nil)delete(n.children, node.Id())n.UpAdjustVolumeCountDelta(-node.GetVolumeCount())n.UpAdjustActiveVolumeCountDelta(-node.GetActiveVolumeCount())