]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd,crimson: pass optional<pg_stat_t> to prepare_stats_for_publish()
authorKefu Chai <kchai@redhat.com>
Thu, 28 Jan 2021 05:56:30 +0000 (13:56 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 28 Jan 2021 12:57:22 +0000 (20:57 +0800)
commit5692ce7c4a4bbb60802385f151d344e402b4f618
tree4203ab2fce10b97e2aab798a78db3c5dfbc9b737
parentfc3084b172e1ccfa0e0880006fc08473a8c182fa
osd,crimson: pass optional<pg_stat_t> to prepare_stats_for_publish()

to simplify the interface. also save the overhead of passing an empty
pg_stat_t if the existing one is invalidated before calling
prepare_stats_for_publish().

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/pg.cc
src/osd/PG.cc
src/osd/PG.h
src/osd/PeeringState.cc
src/osd/PeeringState.h