]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/Objecter: set FULL_FORCE flag when honor_full is false
authorSage Weil <sage@redhat.com>
Thu, 24 Sep 2015 23:02:21 +0000 (19:02 -0400)
committerSage Weil <sage@redhat.com>
Thu, 24 Sep 2015 23:13:02 +0000 (19:13 -0400)
This currenty only applies to the MDS.  Eventually we can remove the
OSD MDS checks once we are confident all MDS instances are new enough
to set this flag.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osdc/Objecter.cc

index 534241892b831b9f86cc340bfd45043cd267d9f6..a0bcf5239790fff759e76e8545f6d4dc2bf02591 100644 (file)
@@ -2844,6 +2844,9 @@ MOSDOp *Objecter::_prepare_osd_op(Op *op)
   if (op->onack)
     flags |= CEPH_OSD_FLAG_ACK;
 
+  if (!honor_osdmap_full)
+    flags |= CEPH_OSD_FLAG_FULL_FORCE;
+
   op->target.paused = false;
   op->stamp = ceph_clock_now(cct);