mon: flush paxos write before setting shutdown state

Paxos::commit_finish() makes assertions about our state (writing |
writing-previous).

Fixes: #9635
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2014-09-30 17:19:35 -07:00
parent 4072ef782e
commit 46c1d93653

View File

@ -863,9 +863,9 @@ void Monitor::shutdown()
dout(1) << "shutdown" << dendl;
lock.Lock();
wait_for_paxos_write();
state = STATE_SHUTDOWN;
wait_for_paxos_write();
if (admin_hook) {
AdminSocket* admin_socket = cct->get_admin_socket();