One of its caller is in the RESTful API which gets ips from the user, so we convert ips to ids inside the API handler using gossiper before calling the function. We need to deprecate ip based API and move to host id based.
23 lines
481 B
C++
23 lines
481 B
C++
/*
|
|
* Copyright (C) 2015-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <seastar/core/sharded.hh>
|
|
#include "api/api_init.hh"
|
|
#include "gms/gossiper.hh"
|
|
|
|
namespace service { class storage_proxy; }
|
|
|
|
namespace api {
|
|
|
|
void set_hinted_handoff(http_context& ctx, httpd::routes& r, sharded<service::storage_proxy>& p, sharded<gms::gossiper>& g);
|
|
void unset_hinted_handoff(http_context& ctx, httpd::routes& r);
|
|
|
|
}
|