]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Monitor: fix statfs handling before luminous switchover happens 19243/head
authorSage Weil <sage@redhat.com>
Wed, 29 Nov 2017 21:20:59 +0000 (15:20 -0600)
committerSage Weil <sage@redhat.com>
Wed, 29 Nov 2017 22:03:31 +0000 (16:03 -0600)
commitc1c539f1efc8f2fe448bf3c4cbbed8f6401ab24d
tree6a068ecfd2255beff5b55632bb136177bf3a7c03
parent3bd0007d5f1c991a80ff80fc2b7bb983ceee971e
mon/Monitor: fix statfs handling before luminous switchover happens

After the mons are luminous but before we switch over to using the
MgrStatMonitor's new info, the version on mgrstat will generally be <<
than that of pgmon, and the client will send that version with the
request.  This means that the statfs message will perpetually appear to be
in the future and fail the is_readable() check.

Fix this with any ugly hack that resets the version to 1 if we haven't
completed the luminous upgrade yet.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/Monitor.cc