From e937462bb3ea76d902f4b6c2704f9fa16bde4894 Mon Sep 17 00:00:00 2001 From: shadow Date: Fri, 24 Oct 2008 05:04:13 +0000 Subject: [PATCH] Kill extra argument for llog_connect, and don't access to ld_tgt_count without protection. Branch b1_8_gate b=16693 i=umka i=tappro --- lustre/mds/mds_lov.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index 61057d7..6fe314b 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -940,8 +940,7 @@ static int __mds_lov_synchronize(void *data) OBD_FAIL_TIMEOUT(OBD_FAIL_MDS_LLOG_SYNC_TIMEOUT, 60); - rc = llog_connect(ctxt, obd->u.mds.mds_lov_desc.ld_tgt_count, - NULL, NULL, uuid); + rc = llog_connect(ctxt, NULL, NULL, uuid); llog_ctxt_put(ctxt); if (rc != 0) { -- 1.8.3.1