From c065ef48a55409051c1ca915ebc3abf2b0b70324 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 8 Sep 2017 15:28:59 -0400 Subject: [PATCH] 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 --- src/osd/PrimaryLogPG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index b02149605e355..5510a411bac2a 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 -- 2.39.5