| 77 | } |
| 78 | |
| 79 | void add_rebalance_pair(struct command *cmd, |
| 80 | struct bkpr *bkpr, |
| 81 | u64 created_index1, u64 created_index2) |
| 82 | { |
| 83 | const char **path; |
| 84 | new_rebalance_pair(bkpr->rebalances, created_index1, created_index2); |
| 85 | |
| 86 | path = ds_rebalance_path(tmpctx, created_index1, created_index2); |
| 87 | /* Contents are ignored: key is the data */ |
| 88 | jsonrpc_set_datastore_string(cmd, path, "", "must-create", |
| 89 | ignore_datastore_reply, NULL, NULL); |
| 90 | } |
| 91 | |
| 92 | const u64 *find_rebalance(const struct bkpr *bkpr, u64 created_index) |
| 93 | { |
no test coverage detected