OPTION(ms_max_backoff, OPT_DOUBLE, 15.0)
OPTION(ms_nocrc, OPT_BOOL, false)
OPTION(ms_die_on_bad_msg, OPT_BOOL, false)
+OPTION(ms_die_on_unexpected_msg, OPT_BOOL, false)
OPTION(ms_dispatch_throttle_bytes, OPT_U64, 100 << 20)
OPTION(ms_bind_ipv6, OPT_BOOL, false)
OPTION(ms_bind_port_min, OPT_INT, 6800)
p++)
if ((*p)->ms_dispatch(m))
return;
- std::ostringstream oss;
- oss << "ms_deliver_dispatch: fatal error: unhandled message "
- << m << " " << *m << " from " << m->get_source_inst();
- dout_emergency(oss.str());
- assert(0);
+ lsubdout(cct, ms, 0) << "ms_deliver_dispatch: unhandled message " << m << " " << *m << " from "
+ << m->get_source_inst() << dendl;
+ assert(!cct->_conf->ms_die_on_unexpected_msg);
+ m->put();
}
/**
* Notify each Dispatcher of a new Connection. Call