fix:[cherry-pick] Reset flushed row num after pack segment for clustering compaction (#34704)

issue: #34703 
master pr: #34702

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
This commit is contained in:
cai.zhang 2024-07-16 15:57:43 +08:00 committed by GitHub
parent 13f129aa9c
commit 0c5aafd2d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -831,6 +831,8 @@ func (t *clusteringCompactionTask) packBufferToSegment(ctx context.Context, buff
zap.Int64("segID", seg.GetSegmentID()),
zap.Int64("row num", seg.GetNumOfRows()))
// reset
buffer.flushedRowNum.Store(0)
// set old writer nil
writer = nil
return nil