]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMap: move summary information into parent PGMapDigest object
authorSage Weil <sage@redhat.com>
Sat, 13 May 2017 02:27:11 +0000 (21:27 -0500)
committerSage Weil <sage@redhat.com>
Fri, 2 Jun 2017 17:02:05 +0000 (13:02 -0400)
commit8f2521617ee31453909ddd0a6a5fd177c8fbf034
tree8c378d06ed30c0d9e0a14e2b94b0423920cf18aa
parent0e598d965a0c98b1137d005e4b6f5a401fb9d38d
mon/PGMap: move summary information into parent PGMapDigest object

Everything summary-ish that we need to send to the mon is moved into a
parent class.  The child PGMap retains the detail.

The parent gets its own encode(), and PGMap::encode_digest() will call it
to encode just the summary info.

Squashed in here is a new num_pg_by_osd that could have been done
in a preceding patch but I did things in the wrong order.  :(

Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/PyModules.cc
src/mon/MgrMonitor.cc
src/mon/PGMap.cc
src/mon/PGMap.h
src/mon/PGMonitor.cc
src/test/encoding/types.h