]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: log error when ondisk snap collections do not match
authorSage Weil <sage@inktank.com>
Thu, 14 Feb 2013 19:34:04 +0000 (11:34 -0800)
committerSage Weil <sage@inktank.com>
Thu, 14 Feb 2013 19:34:04 +0000 (11:34 -0800)
This way we notice when it happens instead of blindly moving on.

Backport: bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/PG.cc

index db613bbd29ccfeac135d0fc3be839a1eaffb32f4..2a559c163270611d14d4c0b90a78196406a13e71 100644 (file)
@@ -3214,6 +3214,8 @@ void PG::check_ondisk_snap_colls(
     derr << "ondisk_snapcolls: " << ondisk_snapcolls
         << " does not match snap_collections " << snap_collections
         << " repairing." << dendl;
+    osd->clog.error() << info.pgid << " ondisk snapcolls " << ondisk_snapcolls << " != snap_collections "
+                     << snap_collections << ", repairing.";
     snap_collections = ondisk_snapcolls;
   }
 }