The return value from llog_declare_destroy() in
llog_cancel_rec() is not used. This patch adds the same check.
Change-Id: I31c09d426e9e4ae5418531acd73a6428927e9bd3
Signed-off-by: Parinay Kondekar <parinay.kondekar@seagate.com>
Reviewed-on: http://review.whamcloud.com/17999
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
if (rc < 0)
GOTO(out_trans, rc);
- if ((llh->llh_flags & LLOG_F_ZAP_WHEN_EMPTY))
+ if ((llh->llh_flags & LLOG_F_ZAP_WHEN_EMPTY)) {
rc = llog_declare_destroy(env, loghandle, th);
+ if (rc < 0)
+ GOTO(out_trans, rc);
+ }
th->th_wait_submit = 1;
rc = dt_trans_start_local(env, dt, th);