From 8ddb2f960e2929cb0c2999d19ab7980f31ca0cb1 Mon Sep 17 00:00:00 2001 From: huanghua Date: Wed, 12 Apr 2006 06:30:40 +0000 Subject: [PATCH] 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. --- lustre/mgs/mgs_llog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; -- 1.8.3.1