Whamcloud - gitweb
LU-3446 mdd: changelog index to survive MDT restart
authorNed Bass <bass6@llnl.gov>
Thu, 13 Jun 2013 22:41:12 +0000 (15:41 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 8 Aug 2013 05:53:40 +0000 (01:53 -0400)
commit82612e21834764439027d6cd33357d55f9dcef04
tree4cd14dc18a1a4905ebc4fbed3b548cbcdb0e8a15
parentc39a767b65dc37a8b1d4eb5fbc64ae9f0c21ffcb
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