Skip to content

Commit

Permalink
LoadPartitions support replicas (#1307)
Browse files Browse the repository at this point in the history
Signed-off-by: yhmo <[email protected]>
  • Loading branch information
yhmo authored Feb 14, 2025
1 parent 93de6d6 commit bd8b543
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public Void loadPartitions(MilvusServiceGrpc.MilvusServiceBlockingStub blockingS
io.milvus.grpc.LoadPartitionsRequest loadPartitionsRequest = io.milvus.grpc.LoadPartitionsRequest.newBuilder()
.setCollectionName(request.getCollectionName())
.addAllPartitionNames(request.getPartitionNames())
.setReplicaNumber(request.getNumReplicas())
.setRefresh(request.getRefresh())
.addAllLoadFields(request.getLoadFields())
.setSkipLoadDynamicField(request.getSkipLoadDynamicField())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public class LoadPartitionsReq {
@Builder.Default
private List<String> partitionNames = new ArrayList<>();
@Builder.Default
private Integer numReplicas = 1;
@Builder.Default
private Boolean refresh = Boolean.FALSE;
@Builder.Default
private List<String> loadFields = new ArrayList<>();
Expand Down

0 comments on commit bd8b543

Please sign in to comment.