MDSMonitor: clean up use of pending fsmap in uncommitted ops 22005/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 7 May 2018 02:06:47 +0000 (19:06 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 15 May 2018 13:44:10 +0000 (06:44 -0700)
commitdaa547117d30250e3a9a720d6534875a2a948a8d
tree1e034c0e05eb872c39c82f02742a14e60932f125
parent3d38967a24b89c65b22e81a741559c3042becfd2
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>
(cherry picked from commit dd68c2386cff7857c4466216db80cfdb4f0353b5)
src/mon/FSCommands.cc
src/mon/MDSMonitor.cc
src/mon/MDSMonitor.h
src/mon/PaxosFSMap.h