Skip to content

Commit

Permalink
enhance: Remove unnecessary segment clone updating dist (#37797)
Browse files Browse the repository at this point in the history
Related to #37630

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored Nov 20, 2024
1 parent 484c6b5 commit b8d31eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/querycoordv2/dist/dist_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit b8d31eb

Please sign in to comment.