Whamcloud - gitweb
LU-12846 mdd: return error while delete failed 02/36602/28
authorYang Sheng <ys@whamcloud.com>
Tue, 29 Oct 2019 06:35:59 +0000 (14:35 +0800)
committerOleg Drokin <green@whamcloud.com>
Sun, 19 Apr 2020 08:45:19 +0000 (08:45 +0000)
commit688d5da6a89882fdf9ebfb3e52ca869e9e959655
tree29f023ed28985982aa250c544b7ce94fdfbd7535
parentdcd5607ce0b35c256a7e2ec7cdca642961219c07
LU-12846 mdd: return error while delete failed

Since we use a global buffer, So avoid to replace the
index name while iterate the orphan directory. Also
return error code in mdd_orphan_destroy while dt_delete
failed. Else will cause a dead loop.

Fixes: e1ace3751f ("LU-8514 mdd: transaction failure should be checked")
Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: I6fc3e992333ffa61900074309223555264cfe66b
Reviewed-on: https://review.whamcloud.com/36602
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Artem Blagodarenko <c17828@cray.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_orphans.c
lustre/tests/recovery-small.sh
lustre/tests/sanity.sh