Skip to content

Commit

Permalink
tools-2646 enable C client rack_aware and prefer rack policy when --p…
Browse files Browse the repository at this point in the history
…refer-racks is used
  • Loading branch information
dwelch-spike committed Jan 22, 2024
1 parent 9c67ed4 commit 48f591b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backup_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ backup_status_init(backup_status_t* status, backup_config_t* conf)
}

if (conf->prefer_racks) {
as_conf.rack_aware = true;
status->policy->replica = AS_POLICY_REPLICA_PREFER_RACK;

as_vector rackids;
as_vector_init(&rackids, sizeof(char*), 1);

Expand Down

0 comments on commit 48f591b

Please sign in to comment.