Whamcloud - gitweb
- trivial cleanup in arguments order;
authoryury <yury>
Mon, 11 Sep 2006 04:49:30 +0000 (04:49 +0000)
committeryury <yury>
Mon, 11 Sep 2006 04:49:30 +0000 (04:49 +0000)
- fixed bug in seq-mgr recovery code, @in should be taken from client, not from server.

lustre/fid/fid_handler.c
lustre/fld/fld_handler.c
lustre/include/lustre_fld.h
lustre/mdt/mdt_handler.c

index 47b463b..94506ea 100644 (file)
@@ -348,11 +348,10 @@ static int seq_req_handle(struct ptlrpc_request *req,
                         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;
index 8ae70a7..ab26a2a 100644 (file)
@@ -315,10 +315,8 @@ static void fld_server_proc_fini(struct lu_server_fld *fld)
 }
 #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;
index 7b21879..a1c00b6 100644 (file)
@@ -138,9 +138,9 @@ int fld_query(struct com_thread_info *info);
 
 /* 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);
index b11fd0f..4f8900f 100644 (file)
@@ -2189,8 +2189,8 @@ static int mdt_fld_init(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;