mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
app/vminsert: properly replicate data for the last RF-1
storage nodes for -replicationFactor=RF
Previously the data for the last `RF-1` storage noes has been incorrectly replicated to the first storage node.
This commit is contained in:
parent
ca4c9023e3
commit
4400700832
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ func sendBufToReplicas(br *bufRows, snIdx, replicas int) bool {
|
|||
return true
|
||||
}
|
||||
if idx >= len(storageNodes) {
|
||||
idx = 0
|
||||
idx %= len(storageNodes)
|
||||
}
|
||||
sn := storageNodes[idx]
|
||||
idx++
|
||||
|
|
Loading…
Reference in a new issue