mirror of
https://github.com/ceph/ceph
synced 2024-12-19 09:57:05 +00:00
mon: reset pending_proposal after dumping to log
It fixes crashes when running with 'debug paxos = 30'. Signed-off-by: Mykola Golub <mgolub@mirantis.com>
This commit is contained in:
parent
03f3fc4aba
commit
60ff33740d
@ -1483,7 +1483,6 @@ void Paxos::propose_pending()
|
||||
|
||||
bufferlist bl;
|
||||
pending_proposal->encode(bl);
|
||||
pending_proposal.reset();
|
||||
|
||||
dout(10) << __func__ << " " << (last_committed + 1)
|
||||
<< " " << bl.length() << " bytes" << dendl;
|
||||
@ -1493,6 +1492,8 @@ void Paxos::propose_pending()
|
||||
f.flush(*_dout);
|
||||
*_dout << dendl;
|
||||
|
||||
pending_proposal.reset();
|
||||
|
||||
committing_finishers.swap(pending_finishers);
|
||||
state = STATE_UPDATING;
|
||||
begin(bl);
|
||||
|
Loading…
Reference in New Issue
Block a user