From: Michal Jarzabek Date: Sun, 9 Oct 2016 12:50:54 +0000 (+0100) Subject: mds/FSMap: pass shared_ptr by const ref X-Git-Tag: v11.1.0~684^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F11383%2Fhead;p=ceph.git mds/FSMap: pass shared_ptr by const ref Signed-off-by: Michal Jarzabek --- diff --git a/src/mds/FSMap.cc b/src/mds/FSMap.cc index af798db1a216..dbfcd7460d76 100644 --- a/src/mds/FSMap.cc +++ b/src/mds/FSMap.cc @@ -654,7 +654,7 @@ void FSMap::sanity() const void FSMap::promote( mds_gid_t standby_gid, - std::shared_ptr filesystem, + const std::shared_ptr &filesystem, mds_rank_t assigned_rank) { assert(gid_exists(standby_gid)); diff --git a/src/mds/FSMap.h b/src/mds/FSMap.h index c71182c24c07..854eeca767b1 100644 --- a/src/mds/FSMap.h +++ b/src/mds/FSMap.h @@ -263,7 +263,7 @@ public: */ void promote( mds_gid_t standby_gid, - std::shared_ptr filesystem, + const std::shared_ptr &filesystem, mds_rank_t assigned_rank); /**