If we get a dup boot message, share the newer maps with the osd so that
they know they are living in the past.
Fixes: #8279
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit
2e6b24868da0b203c2d70ac91071166d95d1d851)
if (osdmap.exists(from) &&
osdmap.get_info(from).up_from > m->version) {
dout(7) << "prepare_boot msg from before last up_from, ignoring" << dendl;
+ send_latest(m, m->sb.current_epoch+1);
goto ignore;
}