diff options
author | Kefu Chai <kchai@redhat.com> | 2017-06-23 06:00:58 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2017-06-23 06:02:03 +0200 |
commit | ffeddb4f22a2d3074c299a5ae94aab97da2d48f2 (patch) | |
tree | 57c0e8c2e3aa65e0fd81fb6cb9ab9ff3bccd51e1 /src | |
parent | mgr: enable ceph_send_command() to send pg command (diff) | |
download | ceph-ffeddb4f22a2d3074c299a5ae94aab97da2d48f2.tar.xz ceph-ffeddb4f22a2d3074c299a5ae94aab97da2d48f2.zip |
osdc/Objecter: pass vector by const reference
so we can pass temporary object to it as parameter.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/osdc/Objecter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osdc/Objecter.h b/src/osdc/Objecter.h index 4efdb9d08b0..a9998fa2643 100644 --- a/src/osdc/Objecter.h +++ b/src/osdc/Objecter.h @@ -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( |