- fixed bug in seq-mgr recovery code, @in should be taken from client, not from server.
RETURN(-EPROTO);
if (lustre_msg_get_flags(req->rq_reqmsg) & MSG_REPLAY) {
- in = req_capsule_server_get(&info->sti_pill,
- &RMF_SEQ_RANGE);
- /* umka, FIXME: "in" has not been filled with anything
+ in = req_client_server_get(&info->sti_pill,
+ &RMF_SEQ_RANGE);
+
LASSERT(!range_is_zero(in) && range_is_sane(in));
- */
}
ctx = req->rq_svc_thread->t_ctx;
}
#endif
-int fld_server_init(struct lu_server_fld *fld,
- const struct lu_context *ctx,
- struct dt_device *dt,
- const char *uuid)
+int fld_server_init(struct lu_server_fld *fld, struct dt_device *dt,
+ const char *uuid, const struct lu_context *ctx)
{
int rc;
ENTRY;
/* Server methods */
int fld_server_init(struct lu_server_fld *fld,
- const struct lu_context *ctx,
struct dt_device *dt,
- const char *uuid);
+ const char *uuid,
+ const struct lu_context *ctx);
void fld_server_fini(struct lu_server_fld *fld,
const struct lu_context *ctx);
if (ls->ls_server_fld == NULL)
RETURN(rc = -ENOMEM);
- rc = fld_server_init(ls->ls_server_fld, ctx,
- m->mdt_bottom, uuid);
+ rc = fld_server_init(ls->ls_server_fld,
+ m->mdt_bottom, uuid, ctx);
if (rc) {
OBD_FREE_PTR(ls->ls_server_fld);
ls->ls_server_fld = NULL;