]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/Objecter: respect honor_osdmap_full setting
authorJohn Spray <john.spray@redhat.com>
Wed, 1 Oct 2014 22:00:35 +0000 (23:00 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 15 Dec 2014 12:15:33 +0000 (12:15 +0000)
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>
src/osdc/Objecter.cc

index 2e832ff5178f57393b515942821fe43b8d264bf0..5ad65d488853fc9a8f4e9aff209df28251985cd2 100644 (file)
@@ -1986,9 +1986,8 @@ bool Objecter::target_should_be_paused(op_target_t *t)
  */
 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;
 }