Clean BF for compacted segment in datanode (#20085)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/20077/head
congqixia 2022-10-26 14:35:31 +08:00 committed by GitHub
parent b5ce87ba30
commit 27ebb766e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -516,6 +516,8 @@ func (c *ChannelMeta) mergeFlushedSegments(seg *Segment, planID UniqueID, compac
s := c.segments[ID]
s.compactedTo = seg.segmentID
s.setType(datapb.SegmentType_Compacted)
// release bloom filter
s.pkStat.pkFilter = nil
}
c.segMu.Unlock()