]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PrimaryLogPG: can_create false for cache ops 17579/head
authorSage Weil <sage@redhat.com>
Fri, 8 Sep 2017 19:28:59 +0000 (15:28 -0400)
committerSage Weil <sage@redhat.com>
Thu, 21 Sep 2017 18:29:35 +0000 (14:29 -0400)
Some cache ops do writes, but none of them *create* objects, so we
should not set can_create.

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

index b02149605e3558ac69e08edbc63742f35339ba58..5510a411bac2a60458dcf9c51777f5047ca89819 100644 (file)
@@ -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