Skip to content

Commit 48f591b

Browse files
committed
tools-2646 enable C client rack_aware and prefer rack policy when --prefer-racks is used
1 parent 9c67ed4 commit 48f591b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backup_status.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,9 @@ backup_status_init(backup_status_t* status, backup_config_t* conf)
349349
}
350350

351351
if (conf->prefer_racks) {
352+
as_conf.rack_aware = true;
353+
status->policy->replica = AS_POLICY_REPLICA_PREFER_RACK;
354+
352355
as_vector rackids;
353356
as_vector_init(&rackids, sizeof(char*), 1);
354357

0 commit comments

Comments
 (0)