]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: pass const variables by const ref not pointer
authorKefu Chai <kchai@redhat.com>
Fri, 24 Feb 2017 12:38:03 +0000 (20:38 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 30 Mar 2017 12:21:17 +0000 (20:21 +0800)
commit454da5e7b24c3e8bc4b0e61ca4460fdcc90d5168
tree4d02a23c616b82a03cbddd3461ae5dfad32d06b9
parent5d23e6431cf911cf6e64a8fbd527fbe23084de75
mon: pass const variables by const ref not pointer

* PGMapUpdater::check_down_pgs(): pass a const reference to pgmap
  instead of a pointer
* PGMapUpdater::register_new_pgs(): pass a const reference to pgmap
  instead of a pointer

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mgr/ClusterState.cc
src/mon/PGMap.cc
src/mon/PGMap.h
src/mon/PGMonitor.cc