diff --git a/internal/querycoordv2/dist/dist_handler.go b/internal/querycoordv2/dist/dist_handler.go index 4a1b2c5862..18b6ab38a8 100644 --- a/internal/querycoordv2/dist/dist_handler.go +++ b/internal/querycoordv2/dist/dist_handler.go @@ -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(),