]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/Objecter: force pg_command ops to ignore overlay
authorSage Weil <sage@redhat.com>
Mon, 13 Feb 2017 22:38:38 +0000 (17:38 -0500)
committerSage Weil <sage@redhat.com>
Tue, 14 Feb 2017 04:03:52 +0000 (23:03 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osdc/Objecter.cc

index 2b2113f73a8c19ce99a284ac81c08575274ea863..a495ed99017fa75cf96bf69ab097f48272d3eec1 100644 (file)
@@ -4801,6 +4801,9 @@ int Objecter::_calc_command_target(CommandOp *c, shunique_lock& sul)
 
   c->map_check_error = 0;
 
+  // ignore overlays, just like we do with pg ops
+  c->target.flags |= CEPH_OSD_FLAG_IGNORE_OVERLAY;
+
   if (c->target_osd >= 0) {
     if (!osdmap->exists(c->target_osd)) {
       c->map_check_error = -ENOENT;