From: Sage Weil Date: Thu, 14 Feb 2013 19:34:04 +0000 (-0800) Subject: osd: log error when ondisk snap collections do not match X-Git-Tag: v0.58~65^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1de16ac1c4d434191bf3ea678f84b7e63061925b;p=ceph.git osd: log error when ondisk snap collections do not match This way we notice when it happens instead of blindly moving on. Backport: bobtail Signed-off-by: Sage Weil --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index db613bbd29cc..2a559c163270 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -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; } }