]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG::_scrub: don't record digests for snapdirs 3462/head
authorSamuel Just <sjust@redhat.com>
Wed, 14 Jan 2015 17:47:52 +0000 (09:47 -0800)
committerSamuel Just <sjust@redhat.com>
Wed, 14 Jan 2015 17:47:52 +0000 (09:47 -0800)
They are always empty, and the finish_ctx machinery doesn't really
work for snapdirs anyway.

Fixes: #10536
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ReplicatedPG.cc

index 0a54565d5babccc4158dc614a34bb800c45d6c1f..e809fc85b60694b820bd47ec78aebc6d4c3c3522 100644 (file)
@@ -12803,6 +12803,8 @@ void ReplicatedPG::_scrub(ScrubMap& scrubmap)
           scrubber.missing_digest.begin();
         p != scrubber.missing_digest.end();
         ++p) {
+      if (p->first.is_snapdir())
+       continue;
       dout(10) << __func__ << " recording digests for " << p->first << dendl;
       ObjectContextRef obc = get_object_context(p->first, false);
       assert(obc);