From: Danny Al-Gaaf Date: Thu, 9 Jul 2015 08:24:21 +0000 (+0200) Subject: os/KeyValueStore.cc: pass const parameter by reference X-Git-Tag: v9.1.0~446^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=12e87f95a692869d0ab1b7b15bd3ac14703efea3;p=ceph.git os/KeyValueStore.cc: pass const parameter by reference Signed-off-by: Danny Al-Gaaf --- diff --git a/src/os/KeyValueStore.cc b/src/os/KeyValueStore.cc index 390113470ea..4e345a801bf 100644 --- a/src/os/KeyValueStore.cc +++ b/src/os/KeyValueStore.cc @@ -2977,7 +2977,7 @@ int KeyValueStore::check_get_rc(const coll_t cid, const ghobject_t& oid, int r, return r; } -void KeyValueStore::dump_start(const std::string file) +void KeyValueStore::dump_start(const std::string &file) { dout(10) << "dump_start " << file << dendl; if (m_keyvaluestore_do_dump) { diff --git a/src/os/KeyValueStore.h b/src/os/KeyValueStore.h index 94a1408f7f2..a0e37de50f6 100644 --- a/src/os/KeyValueStore.h +++ b/src/os/KeyValueStore.h @@ -641,7 +641,7 @@ class KeyValueStore : public ObjectStore, const ghobject_t &oid); int check_get_rc(const coll_t cid, const ghobject_t& oid, int r, bool is_equal_size); - void dump_start(const std::string file); + void dump_start(const std::string &file); void dump_stop(); void dump_transactions(list& ls, uint64_t seq, OpSequencer *osr);