mirror of https://github.com/milvus-io/milvus.git
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
parent
1e590d787f
commit
d00028edba
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue