Skip to content

Commit

Permalink
Merge pull request ceph#1643 from ceph/wip-8062
Browse files Browse the repository at this point in the history
mon/OSDMonitor: ignore boot message from before last up_from

Reviewed-by: Greg Farnum <[email protected]>
  • Loading branch information
Sage Weil committed Apr 11, 2014
2 parents 28371a2 + 4c99e97 commit 756e362
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mon/OSDMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,12 @@ bool OSDMonitor::preprocess_boot(MOSDBoot *m)
goto ignore;
}

if (osdmap.exists(from) &&
osdmap.get_info(from).up_from > m->boot_epoch) {
dout(7) << "prepare_boot msg from before last up_from, ignoring" << dendl;
goto ignore;
}

// noup?
if (!can_mark_up(from)) {
dout(7) << "preprocess_boot ignoring boot from " << m->get_orig_source_inst() << dendl;
Expand Down

0 comments on commit 756e362

Please sign in to comment.