]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: Monitor: don't remove 'mon_sync' when clearing the store during abort
authorJoao Eduardo Luis <joao.luis@inktank.com>
Wed, 19 Jun 2013 01:21:58 +0000 (02:21 +0100)
committerSage Weil <sage@inktank.com>
Wed, 19 Jun 2013 05:00:57 +0000 (22:00 -0700)
commit41e1a6beeef69136fe6ec3f31d07ea8c33d64cba
treef9d8cf4a24b14743cf518fd003b3b8ce86935bf5
parent3383ba6326aeff6500df4792fcef65740dd6b3ea
mon: Monitor: don't remove 'mon_sync' when clearing the store during abort

Otherwise, we will end up losing the monmap we backed up when we started
the sync, and the monitor may be unable to start if it is killed or
crashes in-between the sync abort and finishing a new sync.

Fixes: #5256 (partially)
Backport: cuttlefish

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
(cherry picked from commit af5a9861d7c6b4527b0d2312d0efa792910bafd9)
src/mon/Monitor.cc