]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/KeyValueStore.cc: pass const parameter by reference
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 9 Jul 2015 08:24:21 +0000 (10:24 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 17 Jul 2015 08:50:45 +0000 (10:50 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/KeyValueStore.cc
src/os/KeyValueStore.h

index 390113470eacce786ff47bcff2f4032a25cc5632..4e345a801bf4079e56d91e2dbc3a5e3c118c350d 100644 (file)
@@ -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) {
index 94a1408f7f2b4ce7e79d9dff34f83edd198599eb..a0e37de50f63f82edcd5629c8cd4c27d76116a64 100644 (file)
@@ -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<ObjectStore::Transaction*>& ls, uint64_t seq,
                          OpSequencer *osr);