]> 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>
Fri, 30 Oct 2015 20:01:27 +0000 (13:01 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/osd/ReplicatedPG.cc

index 676cc430f107f862dba81361a68f5f6fdb735cb8..5b11786af20f2e5a1b58ad7cb293ef5c001ceca6 100644 (file)
@@ -12347,6 +12347,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) {