From 79a3ccaa5bc2e149e67493e932a340f53255b375 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 16 Jun 2004 14:16:30 +0000 Subject: [PATCH] - lmv_set_mdc_active() should skip NULL exports actually, such an export could be connection back to owner mds --- lustre/lmv/lmv_obd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index 3fe8196..68d36f9 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -68,6 +68,9 @@ static int lmv_set_mdc_active(struct lmv_obd *lmv, struct obd_uuid *uuid, spin_lock(&lmv->lmv_lock); for (i = 0, tgt = lmv->tgts; i < lmv->desc.ld_tgt_count; i++, tgt++) { + if (tgt->ltd_exp == NULL) + continue; + CDEBUG(D_INFO, "lmv idx %d is %s conn "LPX64"\n", i, tgt->uuid.uuid, tgt->ltd_exp->exp_handle.h_cookie); if (strncmp(uuid->uuid, tgt->uuid.uuid, sizeof uuid->uuid) == 0) -- 1.8.3.1