mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
This reverts commit 8f449f2996
.
Signed-off-by: yah01 <yang.cen@zilliz.com>
Signed-off-by: yah01 <yang.cen@zilliz.com>
This commit is contained in:
parent
ec3aef1f3e
commit
482986cdf6
@ -169,10 +169,7 @@ func (kc *Catalog) AlterSegment(ctx context.Context, newSegment *datapb.SegmentI
|
||||
maps.Copy(kvs, segmentKvs)
|
||||
if newSegment.State == commonpb.SegmentState_Flushed && oldSegment.State != commonpb.SegmentState_Flushed {
|
||||
flushSegKey := buildFlushedSegmentPath(newSegment.GetCollectionID(), newSegment.GetPartitionID(), newSegment.GetID())
|
||||
newSeg := &datapb.SegmentInfo{
|
||||
ID: newSegment.GetID(),
|
||||
IsFake: newSegment.GetNumOfRows() == 0,
|
||||
}
|
||||
newSeg := &datapb.SegmentInfo{ID: newSegment.GetID()}
|
||||
segBytes, err := marshalSegmentInfo(newSeg)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user