prepare_beacon() case of prepare_update() should put()
message in two more cases, because is the last step
of dispatch()
Fixes: http://tracker.ceph.com/issues/17285
Signed-off-by: Igor Podoski <igor.podoski@ts.fujitsu.com>
// Ignore beacons if filesystem is disabled
if (!mdsmap.get_enabled()) {
dout(1) << "warning, MDS " << m->get_orig_source_inst() << " up but filesystem disabled" << dendl;
+ m->put();
return false;
}
dout(0) << "got beacon for MDS in STATE_STOPPING, ignoring requested state change"
<< dendl;
_note_beacon(m);
+ m->put();
return true;
}