Whamcloud - gitweb
LU-5285 mdt: reconstruct to handle non-existing objects 25/11025/3
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Wed, 9 Jul 2014 13:50:11 +0000 (17:50 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 11 Jul 2014 02:57:46 +0000 (02:57 +0000)
commit13352ee70c2f1b3c382fa1bae1885967fb2cf69b
tree0813d8251f884aa9f38c7cd01995ab23f03bd524
parenta1ef13bca025e09e10ce2d6e007013d0e187e6eb
LU-5285 mdt: reconstruct to handle non-existing objects

it's possible that reconstruction finds the object doesn't exist
because the original transaction was committed and the rep-ack
lock got released letting another clients to destroy the object.
we should handle this propely - return attributes to indicate the
object has been unlinked (nlink=0

Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Change-Id: I3bc18ff0cdb3b7f6d28e47604cf3e142e3f5bc42
Reviewed-on: http://review.whamcloud.com/11025
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_recovery.c
lustre/tests/replay-dual.sh