From 87702b497d74038beca7f7920be45b29e6ffb51f Mon Sep 17 00:00:00 2001 From: tappro Date: Mon, 2 Oct 2006 15:04:52 +0000 Subject: [PATCH] shut up annoying messages --- lustre/mdt/mdt_recovery.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lustre/mdt/mdt_recovery.c b/lustre/mdt/mdt_recovery.c index feeba27..02e4b36 100644 --- a/lustre/mdt/mdt_recovery.c +++ b/lustre/mdt/mdt_recovery.c @@ -843,7 +843,9 @@ static int mdt_txn_stop_cb(const struct lu_env *env, } if (mti->mti_has_trans) { - CWARN("More than one transaction "LPU64"\n", mti->mti_transno); + /* XXX: currently there are allowed cases, but the wrong cases + * are also possible, so better check is needed here */ + CDEBUG(D_INFO, "More than one transaction "LPU64"\n", mti->mti_transno); return 0; } @@ -901,8 +903,9 @@ static int mdt_txn_commit_cb(const struct lu_env *env, } else spin_unlock(&mdt->mdt_transno_lock); - CDEBUG(D_HA, "%s: transno "LPD64" committed\n", - obd->obd_name, txi->txi_transno); + if (txi->txi_transno) + CDEBUG(D_HA, "%s: transno "LPD64" committed\n", + obd->obd_name, txi->txi_transno); return 0; } -- 1.8.3.1