mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
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:
parent
4072ef782e
commit
46c1d93653
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user