]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
message/MMonMgrReport: conditionally reencode PGMapDigest
authorSage Weil <sage@redhat.com>
Wed, 13 Feb 2019 13:29:45 +0000 (07:29 -0600)
committerNathan Cutler <ncutler@suse.com>
Tue, 26 Feb 2019 12:52:47 +0000 (13:52 +0100)
commitcb544b0b358dbfe5cc639b9740aee994d84aa0b1
treee2dc58cdf726245dd462ae457e9b1e74170b0ca5
parent4b9c1da23e67a85dbcfcc081f339d2877222e85a
message/MMonMgrReport: conditionally reencode PGMapDigest

The encoding changed between luminous and mimic.  Reencode the
structure if the target doesn't have all the features.

Fixes: http://tracker.ceph.com/issues/38295
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit e4ae368ff7a5396194f8bdd5692429af5457998b)

Conflicts:
src/CMakeLists.txt
        src/messages/MMonMgrReport.h
- mimic has msgr V1
- do not check SERVER_NAUTILUS on mimic
- use begin() instead of cbegin() on mimic
src/CMakeLists.txt
src/messages/MMonMgrReport.h
src/mon/CMakeLists.txt