mirror of https://github.com/milvus-io/milvus.git
enhance: Remove unnecessary segment clone updating dist (#37797)
Related to #37630 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/37839/head
parent
484c6b5c44
commit
b8d31ebed8
|
@ -24,7 +24,6 @@ import (
|
|||
|
||||
"github.com/samber/lo"
|
||||
"go.uber.org/zap"
|
||||
"google.golang.org/protobuf/proto"
|
||||
|
||||
"github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
|
||||
"github.com/milvus-io/milvus/internal/proto/datapb"
|
||||
|
@ -156,7 +155,7 @@ func (dh *distHandler) updateSegmentsDistribution(resp *querypb.GetDataDistribut
|
|||
}
|
||||
}
|
||||
updates = append(updates, &meta.Segment{
|
||||
SegmentInfo: proto.Clone(segmentInfo).(*datapb.SegmentInfo),
|
||||
SegmentInfo: segmentInfo,
|
||||
Node: resp.GetNodeID(),
|
||||
Version: s.GetVersion(),
|
||||
LastDeltaTimestamp: s.GetLastDeltaTimestamp(),
|
||||
|
|
Loading…
Reference in New Issue