From: Sage Weil Date: Fri, 8 Sep 2017 19:28:59 +0000 (-0400) Subject: osd/PrimaryLogPG: can_create false for cache ops X-Git-Tag: v13.0.1~840^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c065ef48a55409051c1ca915ebc3abf2b0b70324;p=ceph.git osd/PrimaryLogPG: can_create false for cache ops Some cache ops do writes, but none of them *create* objects, so we should not set can_create. Signed-off-by: Sage Weil --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index b02149605e35..5510a411bac2 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -2070,7 +2070,7 @@ void PrimaryLogPG::do_op(OpRequestRef& op) } ObjectContextRef obc; - bool can_create = op->may_write() || op->may_cache(); + bool can_create = op->may_write(); hobject_t missing_oid; // kludge around the fact that LIST_SNAPS sets CEPH_SNAPDIR for LIST_SNAPS