]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: adjust num_pinned in _delete_oid 9576/head
authorSamuel Just <sjust@redhat.com>
Fri, 20 May 2016 20:59:10 +0000 (13:59 -0700)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Wed, 8 Jun 2016 06:09:57 +0000 (11:39 +0530)
Fixes: http://tracker.ceph.com/issues/15952
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 907d4e25c676fd3e1c2be90ce8ab5b64b362b0bc)

src/osd/ReplicatedPG.cc

index be65e6ed7146c4531327368e7daf24911eeacc94..d971f776166e37e3fade38706de450b33c5e01d6 100644 (file)
@@ -6079,6 +6079,9 @@ inline int ReplicatedPG::_delete_oid(OpContext *ctx, bool no_whiteout)
     dout(20) << __func__ << " deleting whiteout on " << soid << dendl;
     ctx->delta_stats.num_whiteouts--;
   }
+  if (oi.is_cache_pinned()) {
+    ctx->delta_stats.num_objects_pinned--;
+  }
   if (soid.is_head())
     snapset.head_exists = false;
   obs.exists = false;