]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
MDSMonitor: clean up use of pending fsmap in uncommitted ops
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 7 May 2018 02:06:47 +0000 (19:06 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 7 May 2018 04:32:06 +0000 (21:32 -0700)
commitdd68c2386cff7857c4466216db80cfdb4f0353b5
tree5a58e413b13ffe6bda6ceec186d00b0e87eeae9a
parent1933bdf37098130342d0debacf4daa0a41011351
MDSMonitor: clean up use of pending fsmap in uncommitted ops

Gist of this commit is to eliminate use of PaxosFSMap::get_working_fsmap which
allowed looking at the pending FSMap depending if it's the leader. Instead,
pass the FSMap being worked on to helper functions.

Also, ensure that we are only looking at the committed (i.e. current) FSMap
in the preprocess_* service methods.

Fixes: http://tracker.ceph.com/issues/23768
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mon/FSCommands.cc
src/mon/MDSMonitor.cc
src/mon/MDSMonitor.h
src/mon/PaxosFSMap.h