With this, it no longer needs to special case the MDS,
as the MDS can just call unset_honor_osdmap_full.
Signed-off-by: John Spray <john.spray@redhat.com>
*/
bool Objecter::osdmap_full_flag() const
{
- // Ignore the FULL flag if we are working on behalf of an MDS, in order to permit
- // MDS journal writes for file deletions.
- return osdmap->test_flag(CEPH_OSDMAP_FULL) && (messenger->get_myname().type() != entity_name_t::TYPE_MDS);
+ // Ignore the FULL flag if the caller has honor_osdmap_full
+ return osdmap->test_flag(CEPH_OSDMAP_FULL) && honor_osdmap_full;
}