Whamcloud - gitweb
- minor debug messages fixes
authoralex <alex>
Sat, 28 May 2005 11:16:28 +0000 (11:16 +0000)
committeralex <alex>
Sat, 28 May 2005 11:16:28 +0000 (11:16 +0000)
lustre/ldlm/ldlm_lib.c
lustre/mds/mds_lmv.c

index 72f81ee..38d9feb 100644 (file)
@@ -1123,11 +1123,10 @@ static int check_for_next_transno(struct obd_device *obd)
                 wake_up = 1;
         } else if (queue_len + completed == max) {
                 LASSERT(req->rq_reqmsg->transno >= next_transno);
-                if (req_transno > obd->obd_last_committed)
-                        CDEBUG(D_ERROR, "waking for skipped transno (skip: "
-                               LPD64", ql: %d, comp: %d, conn: %d, next: "
-                               LPD64")\n", next_transno, queue_len, completed,
-                               max, req_transno);
+                CDEBUG(req_transno > obd->obd_last_committed ? D_ERROR : D_HA,
+                       "waking for skipped transno (skip: "LPD64
+                       ", ql: %d, comp: %d, conn: %d, next: "LPD64")\n",
+                       next_transno, queue_len, completed, max, req_transno);
                 obd->obd_next_recovery_transno = req_transno;
                 wake_up = 1;
         } else if (queue_len == atomic_read(&obd->obd_req_replay_clients)) {
index 8e7ba8b..e6ea5d8 100644 (file)
@@ -936,7 +936,7 @@ int mds_choose_mdsnum(struct obd_device *obd, const char *name, int len, int fla
                         __u64 count = lmv->desc.ld_tgt_count;
                         i = do_div(nid, count);
                         CWARN("client from %s creates top dir %*s on mds #%d\n",
-                              ptlrpc_peernid2str(peer, peer_str), len, name, i);
+                              ptlrpc_peernid2str(peer,peer_str), len, name, i+1);
                 }
         } else if (mds->mds_md_exp) {
                 lmv = &mds->mds_md_exp->exp_obd->u.lmv;