Skip to content

Commit

Permalink
mon/PGMonitor: assert PGMonitor stops proposing after luminous
Browse files Browse the repository at this point in the history
One hacky exception here for the rebuild-mondb case.

Signed-off-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Jun 12, 2017
1 parent 6270378 commit 5325460
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mon/PGMonitor.cc
Expand Up @@ -467,6 +467,9 @@ void PGMonitor::encode_pending(MonitorDBStore::TransactionRef t)
return;
}

assert(mon->osdmon()->osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS ||
pending_inc.version == 1 /* rebuild-mondb.yaml case */);

version_t version = pending_inc.version;
dout(10) << __func__ << " v " << version << dendl;
assert(get_last_committed() + 1 == version);
Expand Down

0 comments on commit 5325460

Please sign in to comment.