]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: EOPNOTSUPP on ec_pool if there are omaps in the COPY_GET
authorSamuel Just <sam.just@inktank.com>
Sat, 7 Dec 2013 22:43:22 +0000 (14:43 -0800)
committerSamuel Just <sam.just@inktank.com>
Wed, 22 Jan 2014 22:39:17 +0000 (14:39 -0800)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index 87bbe7dce53866c8531378737526e4288ad0fbc9..2472787c33ad92dc0dd1a1e9962b40fdb0158add 100644 (file)
@@ -5299,6 +5299,10 @@ void ReplicatedPG::process_copy_chunk(hobject_t oid, tid_t tid, int r)
             << " tid " << cop->objecter_tid << dendl;
     return;
   }
+
+  if (r >= 0 && pool.info.ec_pool() && cop->omap.size()) {
+    r = -EOPNOTSUPP;
+  }
   cop->objecter_tid = 0;
   cop->objecter_tid2 = 0;  // assume this ordered before us (if it happened)
   ObjectContextRef& cobc = cop->obc;