Whamcloud - gitweb
Fixed a bug: when stealing config log for add mdc & osc from clients', I should
authorhuanghua <huanghua>
Wed, 12 Apr 2006 06:30:40 +0000 (06:30 +0000)
committerhuanghua <huanghua>
Wed, 12 Apr 2006 06:30:40 +0000 (06:30 +0000)
change the name of the mdc&osc, instead of uuid.

lustre/mgs/mgs_llog.c

index 7fa39aa..45f8cf6 100644 (file)
@@ -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';