From: adilger Date: Thu, 5 Aug 2004 23:07:30 +0000 (+0000) Subject: More verbose debugging for llog replay assertion. X-Git-Tag: v1_7_100~2000 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=853090097d24525d2262d281801516c8985e43c8 More verbose debugging for llog replay assertion. b=4033 --- diff --git a/lustre/lvfs/llog_lvfs.c b/lustre/lvfs/llog_lvfs.c index 17a3b62..718b9a2 100644 --- a/lustre/lvfs/llog_lvfs.c +++ b/lustre/lvfs/llog_lvfs.c @@ -281,8 +281,16 @@ static int llog_lvfs_write_rec(struct llog_handle *loghandle, if (rc == 0 && reccookie) { if (llog_cookie_get_flags(reccookie) & LLOG_COOKIE_REPLAY) { - LASSERT(EQ_LOGID(reccookie->lgc_lgl, loghandle->lgh_id)); - LASSERT(reccookie->lgc_index == index); + LASSERTF(EQ_LOGID(reccookie->lgc_lgl,loghandle->lgh_id), + "lgc_lgl.oid/gr "LPU64"/"LPU64" lgh_id.oid/gr" + LPU64"/"LPU64"\n", + reccookie->lgc_lgl.lgl_oid, + reccookie->lgc_lgl.lgl_ogr, + loghandle->lgh_id.lgl_oid, + loghandle->lgh_id.lgl_oid); + LASSERTF(reccookie->lgc_index == index, + "lgc_index %u != index %u\n", + reccookie->lgc_index, index); } else { reccookie->lgc_lgl = loghandle->lgh_id; reccookie->lgc_index = index;