From: Samuel Just Date: Sat, 7 Dec 2013 22:43:22 +0000 (-0800) Subject: ReplicatedPG: EOPNOTSUPP on ec_pool if there are omaps in the COPY_GET X-Git-Tag: v0.78~286^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f2384412cfb31c5830b6e4a0796eecfda853729a;p=ceph.git ReplicatedPG: EOPNOTSUPP on ec_pool if there are omaps in the COPY_GET Signed-off-by: Samuel Just --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 87bbe7dce538..2472787c33ad 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -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;