peon last_committed + 1 == leader first_committed is okay. Note that the
other check (where I clean up whitespace) gets this correct.
Fixes: #9301 (partly)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
d81cd7f86695185dce31df76c33c9a02123f0e4a)
peer_first_committed[from] = last->first_committed;
peer_last_committed[from] = last->last_committed;
- if (last->first_committed > last_committed+1) {
+ if (last->first_committed > last_committed + 1) {
dout(5) << __func__
<< " mon." << from
<< " lowest version is too high for our last committed"
for (map<int,version_t>::iterator p = peer_last_committed.begin();
p != peer_last_committed.end();
++p) {
- if (p->second < first_committed && first_committed > 1) {
+ if (p->second + 1 < first_committed && first_committed > 1) {
dout(5) << __func__
<< " peon " << p->first
<< " last_committed (" << p->second