Ceph - Feature #10509: mon: wishlist tracking ticket
mon: use new MessageRef and intrusive_ptr's throughout the Monitor's message handling
Using MessageRef and intrusive_ptr's for all the messages should allow us to simplify the code and avoid memory leaks when a message is not properly discarded.
However, this will involve a serious scrub on the monitor's code as these changes should go all the way up to Monitor::_ms_dispatch(). Ideally it should be done all the way up to the messenger subsystem, but that would certainly force us to implement it across all the ceph components, so a better approach would be to start doing it on smaller scale and climb our way up to the messenger.