Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
722eb84
)
the offset should not be modified; so use a temporay variable.
author
huanghua
<huanghua>
Fri, 8 Sep 2006 15:40:51 +0000
(15:40 +0000)
committer
huanghua
<huanghua>
Fri, 8 Sep 2006 15:40:51 +0000
(15:40 +0000)
lustre/mdt/mdt_recovery.c
patch
|
blob
|
history
diff --git
a/lustre/mdt/mdt_recovery.c
b/lustre/mdt/mdt_recovery.c
index
7e21a15
..
0f4ebe9
100644
(file)
--- 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));
}