mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-02 01:06:41 +08:00
enhance: [hotfix-2.4.5]cherry pick some fixes (#34659)
include pr: #34019,#34502,#34559 Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
parent
823fba6349
commit
59ef1115d2
@ -342,6 +342,7 @@ func (i *IndexNode) ShowConfigurations(ctx context.Context, req *internalpb.Show
|
||||
Configuations: nil,
|
||||
}, nil
|
||||
}
|
||||
defer i.lifetime.Done()
|
||||
|
||||
configList := make([]*commonpb.KeyValuePair, 0)
|
||||
for key, value := range Params.GetComponentConfigurations("indexnode", req.Pattern) {
|
||||
|
||||
@ -840,9 +840,7 @@ func (s *Server) GetReplicas(ctx context.Context, req *milvuspb.GetReplicasReque
|
||||
|
||||
replicas := s.meta.ReplicaManager.GetByCollection(req.GetCollectionID())
|
||||
if len(replicas) == 0 {
|
||||
return &milvuspb.GetReplicasResponse{
|
||||
Replicas: make([]*milvuspb.ReplicaInfo, 0),
|
||||
}, nil
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
for _, replica := range replicas {
|
||||
|
||||
@ -21,7 +21,6 @@ import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"runtime"
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
"github.com/cockroachdb/errors"
|
||||
@ -594,10 +593,6 @@ func (sd *shardDelegator) GetLevel0Deletions(partitionID int64, candidate pkorac
|
||||
}
|
||||
}
|
||||
|
||||
sort.Slice(pks, func(i, j int) bool {
|
||||
return tss[i] < tss[j]
|
||||
})
|
||||
|
||||
return pks, tss
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user