]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: adjust num_pinned in _delete_oid 9462/head
authorSamuel Just <sjust@redhat.com>
Fri, 20 May 2016 20:59:10 +0000 (13:59 -0700)
committerSamuel Just <sjust@redhat.com>
Tue, 24 May 2016 04:57:32 +0000 (21:57 -0700)
Fixes: http://tracker.ceph.com/issues/15952
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ReplicatedPG.cc

index 8b3da574699337fe532d3cb394e7d8ea647ba2b4..4b4acacfc5b83f9036ec9df0bd43f1ca87d4ccde 100644 (file)
@@ -6099,6 +6099,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;