]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/Objecter: pass vector by const reference 15865/head
authorKefu Chai <kchai@redhat.com>
Fri, 23 Jun 2017 04:00:58 +0000 (12:00 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 23 Jun 2017 04:02:03 +0000 (12:02 +0800)
so we can pass temporary object to it as parameter.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osdc/Objecter.h

index 4efdb9d08b0690b4845dee37c2cfa807430348d8..a9998fa26432330ffda31db3bf4641dad3776157 100644 (file)
@@ -2201,7 +2201,7 @@ public:
       onfinish);
     submit_command(c, ptid);
   }
-  void pg_command(pg_t pgid, vector<string>& cmd,
+  void pg_command(pg_t pgid, const vector<string>& cmd,
                 const bufferlist& inbl, ceph_tid_t *ptid,
                 bufferlist *poutbl, string *prs, Context *onfinish) {
     CommandOp *c = new CommandOp(