API: Compaction manager to return 0 for number of compaction

Until there will be an API for the compaction manager, the API return 0
for the number of total compaction.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
This commit is contained in:
Amnon Heiman
2015-09-12 02:26:26 +03:00
parent c06eb6b8c8
commit e2501aa64c

View File

@@ -56,8 +56,9 @@ void set_compaction_manager(http_context& ctx, routes& r) {
});
cm::get_total_compactions_completed.set(r, [] (std::unique_ptr<request> req) {
//TBD
unimplemented();
// FIXME
// We are currently dont have an API for compaction
// so returning a 0 as the number of total compaction is ok
return make_ready_future<json::json_return_type>(0);
});