From: huanghua Date: Wed, 12 Apr 2006 06:30:40 +0000 (+0000) Subject: Fixed a bug: when stealing config log for add mdc & osc from clients', I should X-Git-Tag: v1_8_0_110~486^2~2044 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=8ddb2f960e2929cb0c2999d19ab7980f31ca0cb1;p=fs%2Flustre-release.git Fixed a bug: when stealing config log for add mdc & osc from clients', I should change the name of the mdc&osc, instead of uuid. --- diff --git a/lustre/mgs/mgs_llog.c b/lustre/mgs/mgs_llog.c index 7fa39aa..45f8cf6 100644 --- a/lustre/mgs/mgs_llog.c +++ b/lustre/mgs/mgs_llog.c @@ -964,7 +964,7 @@ static int mgs_steal_llog_handler(struct llog_handle *llh, uuid = lustre_cfg_string(lcfg, 1); index = lustre_cfg_string(lcfg, 2); gen = lustre_cfg_string(lcfg, 3); - dash = strchr(uuid, '-'); + dash = strchr(name, '-'); *(++dash)='m'; *(++dash)='d'; *(++dash)='t'; @@ -987,7 +987,7 @@ static int mgs_steal_llog_handler(struct llog_handle *llh, uuid = lustre_cfg_string(lcfg, 1); index = lustre_cfg_string(lcfg, 2); gen = lustre_cfg_string(lcfg, 3); - dash = strchr(uuid, '-'); + dash = strchr(name, '-'); *(++dash)='m'; *(++dash)='d'; *(++dash)='t';