]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
MDSMonitor: cleanup and protect fsmap access 21732/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 17 Apr 2018 03:46:39 +0000 (20:46 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 30 Apr 2018 19:52:56 +0000 (12:52 -0700)
commit63a408ef06d08038e481978389527c3e5b9c6da9
treebe2ddbcce8a0371d702112fbbca0c8a4613e0eef
parentc2b01766288ba1f22d910a25f532a13a89df91be
MDSMonitor: cleanup and protect fsmap access

This commit is designed to permanently protect the current epoch FSMap from
accidental changes. Modifications to the pending_fsmap are protected by
checking if the monitor is the leader. Additionally, code must explicitly
request a writeable reference.

Fixes http://tracker.ceph.com/issues/23762

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 624efc64323f99b2e843f376879c1080276e036f)

Conflicts:
src/mon/MDSMonitor.cc
src/mon/MDSMonitor.h
src/mds/FSMap.h
src/messages/MMDSMap.h
src/mon/MDSMonitor.cc
src/mon/MDSMonitor.h
src/mon/OSDMonitor.cc
src/mon/PaxosFSMap.h [new file with mode: 0644]