Whamcloud - gitweb
LU-7463 osd: Change existence assert into error 24/17324/2
authorDi Wang <di.wang@intel.com>
Sat, 21 Nov 2015 15:42:27 +0000 (07:42 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 30 Nov 2015 17:18:59 +0000 (17:18 +0000)
commiteedb94a0503c8bc319a59174b7939835fadfd167
tree28de7953b5a763f5d590cbfde0259ca454cb0a15
parent585becc13c90abe5f1cb17685173abb89c9ccd05
LU-7463 osd: Change existence assert into error

In osd_declare_xx(), some objects might not existent,
especially when calling out_handler(). Let's change
these assert into -ENOENT error to avoid panic on
MDS.

Signed-off-by: Di Wang <di.wang@intel.com>
Change-Id: If17a013a6939a1ebe0519406d39e405fd915110f
Reviewed-on: http://review.whamcloud.com/17324
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
lustre/osd-ldiskfs/osd_handler.c