]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Additional _scrub() check for snapset inconsistency
authorDavid Zafman <dzafman@redhat.com>
Wed, 14 Oct 2015 01:02:32 +0000 (18:02 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 25 Feb 2016 20:50:25 +0000 (12:50 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 9e48e1801ea1a10ce495b3947da06676c2f5f72f)

src/osd/ReplicatedPG.cc

index 784b87e248d4c4e7e47b55fe3a355fc6934c011c..09d43cada74a76a7f76a65be6b4ccdea24d32166 100644 (file)
@@ -11477,6 +11477,11 @@ void ReplicatedPG::_scrub(
 
        if (!snapset->clones.empty()) {
          dout(20) << "  snapset " << snapset.get() << dendl;
+         if (snapset->seq == 0) {
+           osd->clog->error() << mode << " " << info.pgid << " " << soid
+                              << " snaps.seq not set";
+           ++scrubber.shallow_errors;
+          }
        }
 
        if (soid.is_head() && !snapset->head_exists) {