]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: preserve last_committed_floor across sync 400/head
authorSage Weil <sage@inktank.com>
Tue, 9 Jul 2013 17:55:05 +0000 (10:55 -0700)
committerSage Weil <sage@inktank.com>
Tue, 9 Jul 2013 18:05:49 +0000 (11:05 -0700)
commit8b866d2e34bf872e6eed1bdb6e6427c8629fe6eb
tree633452c31c0de5904d79cdb006f1f55e97f34487
parent1f5e6c22548073f241c943fe885bc17f993f8888
mon: preserve last_committed_floor across sync

Add a paranoid check to prevent us from forgetting how far ahead our
last_committed was when we sync.  This prevents an i'll-timed forced-sync
from allowing paxos to warp back in time.

This should never happen unless there is a perfect storm of bad admin
decisions and/or bugs, but we guard against it anyway.

See: #5256
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Monitor.cc
src/mon/Monitor.h