@@ -172,7 +172,7 @@ impl ManagerClient {
172
172
fn _quorum (
173
173
& self ,
174
174
py : Python < ' _ > ,
175
- rank : i64 ,
175
+ group_rank : i64 ,
176
176
step : i64 ,
177
177
checkpoint_metadata : String ,
178
178
shrink_only : bool ,
@@ -182,7 +182,7 @@ impl ManagerClient {
182
182
) -> Result < QuorumResult , StatusError > {
183
183
py. allow_threads ( move || {
184
184
let mut request = tonic:: Request :: new ( ManagerQuorumRequest {
185
- rank : rank ,
185
+ group_rank : group_rank ,
186
186
step : step,
187
187
checkpoint_metadata : checkpoint_metadata,
188
188
shrink_only : shrink_only,
@@ -201,11 +201,11 @@ impl ManagerClient {
201
201
replica_rank : resp. replica_rank ,
202
202
replica_world_size : resp. replica_world_size ,
203
203
recover_src_manager_address : resp. recover_src_manager_address ,
204
- recover_src_rank : resp. recover_src_rank ,
205
- recover_dst_ranks : resp. recover_dst_ranks ,
204
+ recover_src_replica_rank : resp. recover_src_replica_rank ,
205
+ recover_dst_replica_ranks : resp. recover_dst_replica_ranks ,
206
206
store_address : resp. store_address ,
207
207
max_step : resp. max_step ,
208
- max_rank : resp. max_rank ,
208
+ max_replica_rank : resp. max_replica_rank ,
209
209
max_world_size : resp. max_world_size ,
210
210
heal : resp. heal ,
211
211
} )
@@ -250,14 +250,14 @@ impl ManagerClient {
250
250
fn should_commit (
251
251
& self ,
252
252
py : Python < ' _ > ,
253
- rank : i64 ,
253
+ group_rank : i64 ,
254
254
step : i64 ,
255
255
should_commit : bool ,
256
256
timeout : Duration ,
257
257
) -> Result < bool , StatusError > {
258
258
py. allow_threads ( move || {
259
259
let mut request = tonic:: Request :: new ( ShouldCommitRequest {
260
- rank : rank ,
260
+ group_rank : group_rank ,
261
261
step : step,
262
262
should_commit : should_commit,
263
263
} ) ;
@@ -281,11 +281,11 @@ struct QuorumResult {
281
281
replica_rank : i64 ,
282
282
replica_world_size : i64 ,
283
283
recover_src_manager_address : String ,
284
- recover_src_rank : Option < i64 > ,
285
- recover_dst_ranks : Vec < i64 > ,
284
+ recover_src_replica_rank : Option < i64 > ,
285
+ recover_dst_replica_ranks : Vec < i64 > ,
286
286
store_address : String ,
287
287
max_step : i64 ,
288
- max_rank : Option < i64 > ,
288
+ max_replica_rank : Option < i64 > ,
289
289
max_world_size : i64 ,
290
290
heal : bool ,
291
291
}
@@ -299,11 +299,11 @@ impl QuorumResult {
299
299
replica_rank : 0 ,
300
300
replica_world_size : 1 ,
301
301
recover_src_manager_address : "" . to_string ( ) ,
302
- recover_src_rank : None ,
303
- recover_dst_ranks : Vec :: new ( ) ,
302
+ recover_src_replica_rank : None ,
303
+ recover_dst_replica_ranks : Vec :: new ( ) ,
304
304
store_address : "" . to_string ( ) ,
305
305
max_step : 0 ,
306
- max_rank : None ,
306
+ max_replica_rank : None ,
307
307
max_world_size : 1 ,
308
308
heal : false ,
309
309
}
0 commit comments