mirror of https://github.com/milvus-io/milvus.git
[skip e2e]Improve getSegmentByIDPrivate log format (#15028)
Signed-off-by: xige-16 <xi.ge@zilliz.com>pull/15061/head
parent
43b09c83d1
commit
97ea9786e1
|
@ -579,7 +579,7 @@ func (colReplica *collectionReplica) getSegmentByID(segmentID UniqueID) (*Segmen
|
|||
func (colReplica *collectionReplica) getSegmentByIDPrivate(segmentID UniqueID) (*Segment, error) {
|
||||
segment, ok := colReplica.segments[segmentID]
|
||||
if !ok {
|
||||
return nil, errors.New("cannot find segment in QueryNode, id = " + strconv.FormatInt(segmentID, 10))
|
||||
return nil, fmt.Errorf("cannot find segment %d in QueryNode", segmentID)
|
||||
}
|
||||
|
||||
return segment, nil
|
||||
|
|
Loading…
Reference in New Issue