From: Yunchuan Wen Date: Tue, 20 Dec 2016 06:32:08 +0000 (+0800) Subject: filestore: avoid copy ghobject_t in _check_replay_guard X-Git-Tag: v12.0.1~96^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6b181eca8f7af89c88c5c1e8608831a7a21c8106;p=ceph.git filestore: avoid copy ghobject_t in _check_replay_guard Signed-off-by: Yunchuan Wen --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index 7f4c89c3bff..b1916872ab3 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -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; diff --git a/src/os/filestore/FileStore.h b/src/os/filestore/FileStore.h index 9ca0c37f321..338e080896b 100644 --- a/src/os/filestore/FileStore.h +++ b/src/os/filestore/FileStore.h @@ -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); // ------------------