storage_service: takeSnapshot: support the skipFlush option
Fixes #167 Signed-off-by: Benny Halevy <bhalevy@scylladb.com> Closes #168
This commit is contained in:
parent
fbfbdaa298
commit
5311e9bae3
@ -552,7 +552,9 @@ public class StorageService extends MetricsMBean implements StorageServiceMBean,
|
|||||||
APIClient.set_query_param(queryParams, "cf", parts[1]);
|
APIClient.set_query_param(queryParams, "cf", parts[1]);
|
||||||
}
|
}
|
||||||
APIClient.set_query_param(queryParams, "kn", APIClient.join(keyspaceNames));
|
APIClient.set_query_param(queryParams, "kn", APIClient.join(keyspaceNames));
|
||||||
// TODO: origin has one recognized option: skip flush. We don't.
|
if (options.containsKey("skipFlush")) {
|
||||||
|
APIClient.set_query_param(queryParams, "sf", options.get("skipFlush"));
|
||||||
|
}
|
||||||
client.post("/storage_service/snapshots", queryParams);
|
client.post("/storage_service/snapshots", queryParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user