From: huanghua Date: Fri, 8 Sep 2006 15:40:51 +0000 (+0000) Subject: the offset should not be modified; so use a temporay variable. X-Git-Tag: v1_8_0_110~486^2~980 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6dd2cfd58a927a8c7c6857f6961fd22af8549eff;p=fs%2Flustre-release.git the offset should not be modified; so use a temporay variable. --- 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)); }