fix:Reset flushed row num after pack segment for clustering compaction (#34702)

issue: #34703

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
pull/34724/head
cai.zhang 2024-07-16 15:37:38 +08:00 committed by GitHub
parent 804dd5409a
commit fbc10ac695
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

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