]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
MDSMonitor: cleanup and protect fsmap access 21458/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 17 Apr 2018 03:46:39 +0000 (20:46 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 17 Apr 2018 17:56:52 +0000 (10:56 -0700)
commit624efc64323f99b2e843f376879c1080276e036f
tree28bcb0f02c75c5448232ca3200d6e11a90fc11fd
parentf1a733e683ce66a75a46f5c83263fd8355d899ac
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>
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]