]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonClient: constify inbl command args
authorSage Weil <sage@inktank.com>
Thu, 10 Oct 2013 23:13:31 +0000 (16:13 -0700)
committerSage Weil <sage@inktank.com>
Fri, 6 Dec 2013 22:37:24 +0000 (14:37 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
src/mon/MonClient.cc
src/mon/MonClient.h

index f35a0dafd446fe768e18eb20bdf01802225d630c..a77a5f899a618ea9f4557c351027707c7fc5877a 100644 (file)
@@ -895,7 +895,8 @@ void MonClient::_finish_command(MonCommand *r, int ret, string rs)
   delete r;
 }
 
-int MonClient::start_mon_command(const vector<string>& cmd, bufferlist& inbl,
+int MonClient::start_mon_command(const vector<string>& cmd,
+                                const bufferlist& inbl,
                                 bufferlist *outbl, string *outs,
                                 Context *onfinish)
 {
@@ -913,7 +914,8 @@ int MonClient::start_mon_command(const vector<string>& cmd, bufferlist& inbl,
 }
 
 int MonClient::start_mon_command(string name,
-                                const vector<string>& cmd, bufferlist& inbl,
+                                const vector<string>& cmd,
+                                const bufferlist& inbl,
                                 bufferlist *outbl, string *outs,
                                 Context *onfinish)
 {
@@ -932,7 +934,8 @@ int MonClient::start_mon_command(string name,
 }
 
 int MonClient::start_mon_command(int rank,
-                                const vector<string>& cmd, bufferlist& inbl,
+                                const vector<string>& cmd,
+                                const bufferlist& inbl,
                                 bufferlist *outbl, string *outs,
                                 Context *onfinish)
 {
index 0246050059b9ecb922c101770aa811d0bd77af97..1404f35786d3e23129885a57dab4c38660a31b92 100644 (file)
@@ -360,15 +360,15 @@ private:
   void handle_mon_command_ack(MMonCommandAck *ack);
 
 public:
-  int start_mon_command(const vector<string>& cmd, bufferlist& inbl,
+  int start_mon_command(const vector<string>& cmd, const bufferlist& inbl,
                        bufferlist *outbl, string *outs,
                        Context *onfinish);
   int start_mon_command(int mon_rank,
-                       const vector<string>& cmd, bufferlist& inbl,
+                       const vector<string>& cmd, const bufferlist& inbl,
                        bufferlist *outbl, string *outs,
                        Context *onfinish);
   int start_mon_command(const string mon_name,  ///< mon name, with mon. prefix
-                       const vector<string>& cmd, bufferlist& inbl,
+                       const vector<string>& cmd, const bufferlist& inbl,
                        bufferlist *outbl, string *outs,
                        Context *onfinish);