Whamcloud - gitweb
LU-6634 llog: destroy plain llog if init fails 27/16427/15
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Tue, 15 Sep 2015 09:36:35 +0000 (12:36 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 3 Nov 2015 19:53:24 +0000 (19:53 +0000)
commit9126d8159d5d5b61a600e7427d0c173084a710e6
tree8b0cdd1b19d89f0cfbefcec920ee6ec847d322ef
parent8248c89371b8d156ab17ea24de5712f7242cdf9e
LU-6634 llog: destroy plain llog if init fails

llog_cat_add_rec() should destroy the plain llog
in the same transaction if initialization of that
failed. also, llog_osd_write_rec() should check
the object still exists as it's possible that
another thread failed to initialize and destroyed
the llog.

Change-Id: I7b823d34b32b5caaf0cc17b4cfe278a07a78ec15
Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-on: http://review.whamcloud.com/16427
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_log.h
lustre/include/obd_support.h
lustre/obdclass/llog_cat.c
lustre/obdclass/llog_osd.c
lustre/osd-zfs/osd_object.c
lustre/tests/sanity.sh