lsc->lsc_fid = *mds_fid;
lsc->lsc_ioepoch = ioepoch;
- rc = llog_cat_add_rec(cathandle, &lsc->lsc_hdr, logcookie, NULL);
+ rc = llog_cat_add(NULL, cathandle, &lsc->lsc_hdr, logcookie, NULL);
OBD_FREE(lsc, sizeof(*lsc));
if (rc > 0) {
OBD_FAIL_TIMEOUT(OBD_FAIL_OST_CANCEL_COOKIE_TIMEOUT, 30);
- rc = llog_cancel(ctxt, NULL, 1, cookie, 0);
+ rc = llog_cancel(NULL, ctxt, NULL, 1, cookie, 0);
if (rc)
CERROR("error cancelling log cookies: rc = %d\n", rc);
llog_ctxt_put(ctxt);
if (oa->o_seq > FID_SEQ_OST_MAX) {
CERROR("%s: invalid group number "LPU64" > MAX_CMD_GROUP %u\n",
exp->exp_obd->obd_name, oa->o_seq, FID_SEQ_OST_MAX);
+ OBDO_FREE(oa);
RETURN(-EINVAL);
}
if (rc == -ENOENT) {
CDEBUG(D_RPCTRACE, "object already removed, send cookie\n");
- llog_cancel(ctxt, NULL, 1, cookie, 0);
+ llog_cancel(NULL, ctxt, NULL, 1, cookie, 0);
RETURN(0);
}
RETURN(rc);
}
-int filter_recov_log_mds_ost_cb(struct llog_handle *llh,
- struct llog_rec_hdr *rec, void *data)
+int filter_recov_log_mds_ost_cb(const struct lu_env *env,
+ struct llog_handle *llh,
+ struct llog_rec_hdr *rec, void *data)
{
struct llog_ctxt *ctxt = llh->lgh_ctxt;
struct llog_cookie cookie;
else
rc = LLOG_PROC_BREAK;
CDEBUG(D_HA, "fetch generation log, send cookie\n");
- llog_cancel(ctxt, NULL, 1, &cookie, 0);
+ llog_cancel(NULL, ctxt, NULL, 1, &cookie, 0);
RETURN(rc);
}
break;