]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/PGStatService: define maybe_trim_creating_pgs() method
authorKefu Chai <kchai@redhat.com>
Tue, 16 May 2017 07:26:41 +0000 (15:26 +0800)
committerSage Weil <sage@redhat.com>
Fri, 2 Jun 2017 17:02:10 +0000 (13:02 -0400)
commitba5c5f3f15844bd51a6c924870b2cfe5fe0d6dd2
treed0d0306239eec9b28e9fc2eda829c49f097c7a26
parent8e16c68b67549b321af4cde2b3999385465c4d03
mon/PGStatService: define maybe_trim_creating_pgs() method

replace get_pg_stat() with maybe_trim_creating_pgs(), so it is more
symmetric: maybe_add_creating_pgs() versus maybe_trim_creating_pgs().
and we don't need to return a pointer which is always valid. a const
reference is a better fit in this case.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/PGStatService.h