mirror of https://github.com/milvus-io/milvus.git
fix: Fix data race for clustering compaction (#35435)
issue: #35436 Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>pull/35377/head
parent
e58d656e65
commit
196b343a94
|
@ -594,7 +594,7 @@ func (t *clusteringCompactionTask) mappingSegment(
|
||||||
|
|
||||||
if (remained+1)%100 == 0 {
|
if (remained+1)%100 == 0 {
|
||||||
t.clusterBufferLocks.RLock(clusterBuffer.id)
|
t.clusterBufferLocks.RLock(clusterBuffer.id)
|
||||||
currentBufferWriterFull := clusterBuffer.writer.FlushAndIsFull()
|
currentBufferWriterFull := clusterBuffer.writer.IsFull()
|
||||||
t.clusterBufferLocks.RUnlock(clusterBuffer.id)
|
t.clusterBufferLocks.RUnlock(clusterBuffer.id)
|
||||||
|
|
||||||
currentBufferTotalMemorySize := t.getBufferTotalUsedMemorySize()
|
currentBufferTotalMemorySize := t.getBufferTotalUsedMemorySize()
|
||||||
|
|
Loading…
Reference in New Issue