mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 11:10:40 +00:00
API: Add the get_snitch command
This adds the get_snitch_name command. Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
This commit is contained in:
@@ -18,8 +18,7 @@ void set_endpoint_snitch(http_context& ctx, routes& r) {
|
||||
});
|
||||
|
||||
httpd::endpoint_snitch_info_json::get_snitch_name.set(r, [] (const_req req) {
|
||||
//TBD
|
||||
return "";
|
||||
return locator::i_endpoint_snitch::get_local_snitch_ptr()->get_name();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user