From f220c1329a897e4d5b7624f957f57e16bfced27f Mon Sep 17 00:00:00 2001 From: Nathaniel Clark Date: Mon, 20 May 2013 10:03:38 -0400 Subject: [PATCH] LU-3357 mgs: Initialize uuid of llogs created by replace_nids Initialize "Target uuid" with same data as in record_start_log(). Signed-off-by: Nathaniel Clark Change-Id: If7f49eda6bf2f4143d86b71392e215528ebcbf92 Reviewed-on: http://review.whamcloud.com/6395 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Artem Blagodarenko Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin --- lustre/mgs/mgs_llog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/mgs/mgs_llog.c b/lustre/mgs/mgs_llog.c index b03c9a9..32a422a 100644 --- a/lustre/mgs/mgs_llog.c +++ b/lustre/mgs/mgs_llog.c @@ -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); -- 1.8.3.1