]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: avoid copy ghobject_t in _check_replay_guard 12578/head
authorYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Tue, 20 Dec 2016 06:32:08 +0000 (14:32 +0800)
committerYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Tue, 20 Dec 2016 06:32:08 +0000 (14:32 +0800)
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
src/os/filestore/FileStore.cc
src/os/filestore/FileStore.h

index 7f4c89c3bff922c04f67d40f54ef74deee51a116..b1916872ab3feccba79287ace3f6ace5c454ce83 100644 (file)
@@ -2424,7 +2424,8 @@ void FileStore::_close_replay_guard(int fd, const SequencerPosition& spos,
   dout(10) << "_close_replay_guard " << spos << " done" << dendl;
 }
 
-int FileStore::_check_replay_guard(const coll_t& cid, ghobject_t oid, const SequencerPosition& spos)
+int FileStore::_check_replay_guard(const coll_t& cid, const ghobject_t &oid,
+                                   const SequencerPosition& spos)
 {
   if (!replaying || backend->can_checkpoint())
     return 1;
index 9ca0c37f321dba255830021f2dd29df6e3b8cb4c..338e080896bbfc0a13859e14bc6310e5661fac38 100644 (file)
@@ -538,7 +538,7 @@ public:
    */
   int _check_replay_guard(int fd, const SequencerPosition& spos);
   int _check_replay_guard(const coll_t& cid, const SequencerPosition& spos);
-  int _check_replay_guard(const coll_t& cid, ghobject_t oid, const SequencerPosition& pos);
+  int _check_replay_guard(const coll_t& cid, const ghobject_t &oid, const SequencerPosition& pos);
   int _check_global_replay_guard(const coll_t& cid, const SequencerPosition& spos);
 
   // ------------------