mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
fix: fix vmagent multi queue may become one because sync bug (#484)
Co-authored-by: xiaobeibei <xiaobeibei@bigo.sg>
This commit is contained in:
parent
3a68c47de0
commit
a0380a0a91
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ func (fq *FastQueue) MustWriteBlock(block []byte) {
|
|||
bb.B = append(bb.B[:0], block...)
|
||||
fq.ch <- bb
|
||||
fq.pendingInmemoryBytes += uint64(len(block))
|
||||
if len(fq.ch) == 1 {
|
||||
if len(fq.ch) >= 1 {
|
||||
// Notify potentially blocked reader
|
||||
fq.cond.Signal()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue