Whamcloud - gitweb
LU-3446 mdd: changelog index to survive MDT restart 42/6642/4
authorNed Bass <bass6@llnl.gov>
Thu, 13 Jun 2013 22:41:12 +0000 (15:41 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 10 Jul 2013 02:54:39 +0000 (02:54 +0000)
commit8a4fa4e5c041f94e6dffa5524542e97b5c5f71fd
tree12f9514f5f32759274b456c464fd2fc4cd94096e
parentb8b1e7f176943f742b3d802d93f066cafffd6254
LU-3446 mdd: changelog index to survive MDT restart

If all changelog records are cleared the current changelog index is
initialized to zero when the MDT starts. This confuses applications
that rely on the index to track their position in the changelog
history. To avoid this, initialize the current index from the
registered user with the highest end record index.

Add a sanity.sh regression test. Update changelog test function
test_160() and its helpers according to current style guidelines.

Signed-off-by: Ned Bass <bass6@llnl.gov>
Change-Id: I841bbf84c718bac560b6eea4b18de9918b889a90
Reviewed-on: http://review.whamcloud.com/6642
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdd/mdd_device.c
lustre/tests/sanity.sh