storage_service: takeSnapshot: support the skipFlush option

Fixes #167

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>

Closes #168
This commit is contained in:
Benny Halevy 2021-06-02 13:19:41 +03:00 committed by Pekka Enberg
parent fbfbdaa298
commit 5311e9bae3
1 changed files with 3 additions and 1 deletions

View File

@ -552,7 +552,9 @@ public class StorageService extends MetricsMBean implements StorageServiceMBean,
APIClient.set_query_param(queryParams, "cf", parts[1]);
}
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);
}