From 6dd2cfd58a927a8c7c6857f6961fd22af8549eff Mon Sep 17 00:00:00 2001 From: huanghua Date: Fri, 8 Sep 2006 15:40:51 +0000 Subject: [PATCH] the offset should not be modified; so use a temporay variable. --- lustre/mdt/mdt_recovery.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/mdt/mdt_recovery.c b/lustre/mdt/mdt_recovery.c index 7e21a15..0f4ebe9 100644 --- a/lustre/mdt/mdt_recovery.c +++ b/lustre/mdt/mdt_recovery.c @@ -423,8 +423,9 @@ int mdt_client_add(const struct lu_context *ctx, LASSERTF(med->med_lr_off > 0, "med_lr_off = %llu\n", med->med_lr_off); if (new_client) { + loff_t off = med->med_lr_off; rc = mdt_write_last_rcvd(ctx, mdt, mcd, - &med->med_lr_off, NULL); + &off, NULL); CDEBUG(D_INFO, "wrote client mcd at idx %u off %llu (len %u)\n", cl_idx, med->med_lr_off, sizeof(*mcd)); } -- 1.8.3.1