From 12e87f95a692869d0ab1b7b15bd3ac14703efea3 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Thu, 9 Jul 2015 10:24:21 +0200 Subject: [PATCH] os/KeyValueStore.cc: pass const parameter by reference Signed-off-by: Danny Al-Gaaf --- src/os/KeyValueStore.cc | 2 +- src/os/KeyValueStore.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/KeyValueStore.cc b/src/os/KeyValueStore.cc index 390113470eac..4e345a801bf4 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 94a1408f7f2b..a0e37de50f63 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); -- 2.47.3