mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
app/vminsert/netstorage: use correct snb reference
Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
This commit is contained in:
parent
130b9cd04e
commit
9ff8b312bb
1 changed files with 1 additions and 1 deletions
|
@ -679,7 +679,7 @@ func initStorageNodes(addrs []string, hashSeed uint64) *storageNodesBucket {
|
|||
sns: oldSnb.sns,
|
||||
}
|
||||
|
||||
newNodeIDs := append(snb.nodesHash.nodeHashes, sn.getID())
|
||||
newNodeIDs := append(oldSnb.nodesHash.nodeHashes, sn.getID())
|
||||
snbNew.nodesHash = newConsistentHash(newNodeIDs, hashSeed)
|
||||
|
||||
if !storageNodes.CompareAndSwap(oldSnb, &snbNew) {
|
||||
|
|
Loading…
Reference in a new issue