Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-3446 mdd: changelog index to survive MDT restart
[fs/lustre-release.git]
/
lustre
/
mdd
/
mdd_device.c
diff --git
a/lustre/mdd/mdd_device.c
b/lustre/mdd/mdd_device.c
index
c327c9b
..
6db4bb2
100644
(file)
--- a/
lustre/mdd/mdd_device.c
+++ b/
lustre/mdd/mdd_device.c
@@
-196,6
+196,8
@@
static int changelog_user_init_cb(const struct lu_env *env,
spin_lock(&mdd->mdd_cl.mc_user_lock);
mdd->mdd_cl.mc_lastuser = rec->cur_id;
+ if (rec->cur_endrec > mdd->mdd_cl.mc_index)
+ mdd->mdd_cl.mc_index = rec->cur_endrec;
spin_unlock(&mdd->mdd_cl.mc_user_lock);
return LLOG_PROC_BREAK;