Whamcloud - gitweb
LU-3357 mgs: Initialize uuid of llogs created by replace_nids 95/6395/2
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Mon, 20 May 2013 14:03:38 +0000 (10:03 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 10 Jul 2013 02:17:53 +0000 (02:17 +0000)
Initialize "Target uuid" with same data as in record_start_log().

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: If7f49eda6bf2f4143d86b71392e215528ebcbf92
Reviewed-on: http://review.whamcloud.com/6395
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Artem Blagodarenko <artem_blagodarenko@xyratex.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mgs/mgs_llog.c

index b03c9a9..32a422a 100644 (file)
@@ -1095,6 +1095,7 @@ static int mgs_replace_nids_log(const struct lu_env *env,
        struct llog_ctxt *ctxt;
        struct mgs_replace_uuid_lookup *mrul;
        struct mgs_device *mgs_dev = lu2mgs_dev(mgs->obd_lu_dev);
+       static struct obd_uuid   cfg_uuid = { .uuid = "config_uuid" };
        char *backup;
        int rc, rc2;
        ENTRY;
@@ -1133,7 +1134,7 @@ static int mgs_replace_nids_log(const struct lu_env *env,
        if (rc)
                GOTO(out_restore, rc);
 
-       rc = llog_init_handle(env, orig_llh, LLOG_F_IS_PLAIN, NULL);
+       rc = llog_init_handle(env, orig_llh, LLOG_F_IS_PLAIN, &cfg_uuid);
        if (rc)
                GOTO(out_closel, rc);