From a17e889b226763787a9091196b89ad957463b3d2 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 3 Oct 2019 07:43:01 -0500 Subject: [PATCH] crimson: common/admin_socket kludge so that it builds Signed-off-by: Sage Weil --- src/common/admin_socket.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/common/admin_socket.cc b/src/common/admin_socket.cc index 4dfe7bdec46..60812caf5bf 100644 --- a/src/common/admin_socket.cc +++ b/src/common/admin_socket.cc @@ -22,7 +22,10 @@ #include "common/Thread.h" #include "common/version.h" #include "common/ceph_mutex.h" + +#ifndef WITH_SEASTAR #include "common/Cond.h" +#endif #include "messages/MCommand.h" #include "messages/MCommandReply.h" @@ -395,7 +398,11 @@ void AdminSocket::do_tell_queue() auto reply = new MCommandReply(r, err); reply->set_tid(m->get_tid()); reply->set_data(outbl); +#ifdef WITH_SEASTAR +#warning "fix message send with crimson" +#else m->get_connection()->send_message(reply); +#endif }); } } @@ -406,6 +413,10 @@ int AdminSocket::execute_command( std::ostream& errss, bufferlist *outbl) { +#ifdef WITH_SEASTAR +#warning "must implement admin socket blocking execute_command() for crimson" + return -ENOSYS; +#else bool done = false; int rval = 0; ceph::mutex mylock = ceph::make_mutex("admin_socket::excute_command::mylock"); @@ -424,6 +435,7 @@ int AdminSocket::execute_command( mycond.wait(l, [&done] { return done;}); } return rval; +#endif } void AdminSocket::execute_command( -- 2.39.5