]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: Update MgrClient to work without using namespace
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 29 Mar 2019 00:42:34 +0000 (20:42 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 29 Mar 2019 14:30:35 +0000 (10:30 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/mgr/MgrClient.cc
src/mgr/MgrClient.h

index 6a61317aa06d8c8400d49a012f798b31f1ae123a..9ece47bbb92b82928956353c67b0471d70c417c9 100644 (file)
 #include "messages/MCommandReply.h"
 #include "messages/MPGStats.h"
 
+using std::string;
+using std::vector;
+
+using ceph::bufferlist;
+
 #define dout_subsys ceph_subsys_mgrc
 #undef dout_prefix
 #define dout_prefix *_dout << "mgrc " << __func__ << " "
@@ -412,8 +417,8 @@ bool MgrClient::handle_mgr_close(MMgrClose *m)
 }
 
 int MgrClient::start_command(const vector<string>& cmd, const bufferlist& inbl,
-                  bufferlist *outbl, string *outs,
-                  Context *onfinish)
+                            bufferlist *outbl, string *outs,
+                            Context *onfinish)
 {
   std::lock_guard l(lock);
 
index 09764afaf8cce679bda05f67751e6cf0b61ebb3a..2b913c05b2b101358a77cd412e2481ebd22139a1 100644 (file)
@@ -58,7 +58,7 @@ protected:
   MgrMap map;
   Messenger *msgr;
 
-  unique_ptr<MgrSessionState> session;
+  std::unique_ptr<MgrSessionState> session;
 
   Mutex lock = {"MgrClient::lock"};
   Cond shutdown_cond;
@@ -137,8 +137,8 @@ public:
     pgstats_cb = std::move(cb_);
   }
 
-  int start_command(const vector<string>& cmd, const bufferlist& inbl,
-                   bufferlist *outbl, string *outs,
+  int start_command(const std::vector<std::string>& cmd, const ceph::buffer::list& inbl,
+                   ceph::buffer::list *outbl, std::string *outs,
                    Context *onfinish);
 
   int service_daemon_register(