From bcdec9d320fd67022b9a72bf4fe2199a5f2d2b6a Mon Sep 17 00:00:00 2001
From: alex <alex>
Date: Thu, 26 May 2005 16:59:58 +0000
Subject: [PATCH] - don't log open replays

---
 lustre/ldlm/ldlm_lib.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c
index fa6e647c47..51037c9f8f 100644
--- a/lustre/ldlm/ldlm_lib.c
+++ b/lustre/ldlm/ldlm_lib.c
@@ -1123,10 +1123,11 @@ 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);
-                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);
+                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);
                 obd->obd_next_recovery_transno = req_transno;
                 wake_up = 1;
         } else if (queue_len == atomic_read(&obd->obd_req_replay_clients)) {
-- 
GitLab