mirror of https://github.com/milvus-io/milvus.git
Make LoadCollection compatible (#17669)
See also: #17656 Signed-off-by: yangxuan <xuan.yang@zilliz.com>pull/17671/head
parent
1e87b54542
commit
e43f487f02
|
@ -2576,6 +2576,11 @@ func (lct *loadCollectionTask) PreExecute(ctx context.Context) error {
|
|||
return err
|
||||
}
|
||||
|
||||
// To compat with LoadCollcetion before Milvus@2.1
|
||||
if lct.ReplicaNumber == 0 {
|
||||
lct.ReplicaNumber = 1
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue