From: rread Date: Thu, 31 Oct 2002 20:00:28 +0000 (+0000) Subject: * cleanup multiple MDC's correctly X-Git-Tag: 0.5.16~53 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=a443c4f299556928b208e259921204d3c11cfd48;p=fs%2Flustre-release.git * cleanup multiple MDC's correctly --- diff --git a/lustre/utils/lconf b/lustre/utils/lconf index 7ec5e68..f9f4e6b 100755 --- a/lustre/utils/lconf +++ b/lustre/utils/lconf @@ -1326,17 +1326,15 @@ def prepare_mdc(dom_node, mds_uuid): saved_mdc[mds_uuid] = mdc.uuid return mdc.uuid -mdc_cleaned = None def cleanup_mdc(dom_node, mds_uuid): - global mdc_cleaned + global saved_mdc mds_node = lookup(dom_node, mds_uuid); if not mds_node: panic("no mds:", mds_uuid) - if not mdc_cleaned: + if not saved_mdc.has_key(mds_uuid): mdc = MDC(mds_node) mdc.cleanup() - mdc_uuid = None - mdc_cleaned = 'yes' + saved_mdc[mds_uuid] = mdc.uuid ############################################################