Mark segment as fake in flush path (#20141)

Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>

Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
pull/20142/head
Xiaofan 2022-10-27 19:29:33 +08:00 committed by GitHub
parent 1e590d787f
commit d00028edba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -202,6 +202,7 @@ func (kc *Catalog) AlterSegmentsAndAddNewSegment(ctx context.Context, segments [
// should be a faked segment, we create flush path directly here
flushSegKey := buildFlushedSegmentPath(newSegment.GetCollectionID(), newSegment.GetPartitionID(), newSegment.GetID())
clonedSegment := proto.Clone(newSegment).(*datapb.SegmentInfo)
clonedSegment.IsFake = true
segBytes, err := marshalSegmentInfo(clonedSegment)
if err != nil {
return err