mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
parent
df7d3c55ed
commit
d68bb658ce
1 changed files with 1 additions and 1 deletions
|
@ -536,13 +536,13 @@ func tryPushBlockToRemoteStorages(rwctxs []*remoteWriteCtx, tssBlock []prompbmar
|
||||||
// Push sharded data to remote storages in parallel in order to reduce
|
// Push sharded data to remote storages in parallel in order to reduce
|
||||||
// the time needed for sending the data to multiple remote storage systems.
|
// the time needed for sending the data to multiple remote storage systems.
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
wg.Add(len(rwctxs))
|
|
||||||
var anyPushFailed uint64
|
var anyPushFailed uint64
|
||||||
for i, rwctx := range rwctxs {
|
for i, rwctx := range rwctxs {
|
||||||
tssShard := tssByURL[i]
|
tssShard := tssByURL[i]
|
||||||
if len(tssShard) == 0 {
|
if len(tssShard) == 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
wg.Add(1)
|
||||||
go func(rwctx *remoteWriteCtx, tss []prompbmarshal.TimeSeries) {
|
go func(rwctx *remoteWriteCtx, tss []prompbmarshal.TimeSeries) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
if !rwctx.TryPush(tss) {
|
if !rwctx.TryPush(tss) {
|
||||||
|
|
Loading…
Reference in a new issue