Move check_sequencing indication into config response features subkey
This commit is contained in:
@@ -638,7 +638,7 @@ void osd_messenger_t::check_peer_config(osd_client_t *cl)
|
|||||||
// Inform that we're OSD <osd_num>
|
// Inform that we're OSD <osd_num>
|
||||||
payload["osd_num"] = osd_num;
|
payload["osd_num"] = osd_num;
|
||||||
}
|
}
|
||||||
payload["check_sequencing"] = true;
|
payload["features"] = json11::Json::object{ { "check_sequencing", true } };
|
||||||
#ifdef WITH_RDMA
|
#ifdef WITH_RDMA
|
||||||
if (!use_rdmacm && rdma_contexts.size())
|
if (!use_rdmacm && rdma_contexts.size())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ void osd_t::exec_show_config(osd_op_t *cur_op)
|
|||||||
json11::Json req_json = cur_op->req.show_conf.json_len > 0
|
json11::Json req_json = cur_op->req.show_conf.json_len > 0
|
||||||
? json11::Json::parse(std::string((char *)cur_op->buf), json_err)
|
? json11::Json::parse(std::string((char *)cur_op->buf), json_err)
|
||||||
: json11::Json();
|
: json11::Json();
|
||||||
if (req_json["check_sequencing"].bool_value())
|
if (req_json["features"]["check_sequencing"].bool_value())
|
||||||
{
|
{
|
||||||
auto cl = msgr.clients.at(cur_op->peer_fd);
|
auto cl = msgr.clients.at(cur_op->peer_fd);
|
||||||
cl->check_sequencing = true;
|
cl->check_sequencing = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user