scylla-jmx: repairAsync: don't ignore options

repairAsync() builds an "options" argument from the options map it gets,
but then forgot to pass this argument to the request :-)

This is part of issue scylladb/#714.

Signed-off-by: Nadav Har'El <nyh@scylladb.com>
This commit is contained in:
Nadav Har'El 2015-12-27 19:22:24 +02:00 committed by Avi Kivity
parent c8b9198f3b
commit 9b03fa1074
1 changed files with 2 additions and 1 deletions

View File

@ -630,7 +630,8 @@ public class StorageService extends NotificationBroadcasterSupport
opts = opts + op + "=" + options.get(op);
}
APIClient.set_query_param(queryParams, "options", opts);
int cmd = c.postInt("/storage_service/repair_async/" + keyspace);
int cmd = c.postInt("/storage_service/repair_async/" + keyspace,
queryParams);
waitAndNotifyRepair(cmd, keyspace, getRepairMessage(cmd, keyspace, 1, RepairParallelism.SEQUENTIAL, true));
return cmd;
}