}
LASSERT(lgh != NULL);
- ctxt->loc_handle = lgh;
rc = llog_cat_init_and_process(env, lgh);
if (rc != 0)
GOTO(out_close, rc);
}
+ ctxt->loc_handle = lgh;
+
CDEBUG(D_INFO, "%s: Init llog for %d - catid "DOSTID":%x\n",
obd->obd_name, index, POSTID(&cid->lci_logid.lgl_oi),
cid->lci_logid.lgl_ogen);
out_close:
- if (rc != 0) {
- llog_cat_close(env, ctxt->loc_handle);
- ctxt->loc_handle = NULL;
- }
-
+ if (rc != 0)
+ llog_cat_close(env, lgh);
out_put:
llog_ctxt_put(ctxt);
RETURN(rc);