From 280d8b6a1538f4ad9d2acdd045b970811e895c43 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Thu, 1 Sep 2011 16:19:11 -0400 Subject: [PATCH] LU-653 Ignore last transno from clients with no outstanding transactions Clients that did not have any unreplied transactions should not artificially reduce next_recovery_transno since those transactions are never coming anyway and would just elay all replay activity until all clients are reconnected. Change-Id: Iafa32b315211ada93838f4b16fe0f2c800d619c4 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/1318 Tested-by: Hudson Reviewed-by: Mikhail Pershin Tested-by: Maloo --- lustre/ldlm/ldlm_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 9d063d8..db02383 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -1014,7 +1014,8 @@ dont_check_exports: CWARN("Connect with zero transno!\n"); if ((lustre_msg_get_op_flags(req->rq_reqmsg) & MSG_CONNECT_TRANSNO) - && data->ocd_transno < target->obd_next_recovery_transno) + && data->ocd_transno < target->obd_next_recovery_transno && + data->ocd_transno > target->obd_last_committed) target->obd_next_recovery_transno = data->ocd_transno; target->obd_connected_clients++; cfs_atomic_inc(&target->obd_req_replay_clients); -- 1.8.3.1