Whamcloud - gitweb
fix some small bugs related to recovery.
authorhuanghua <huanghua>
Sun, 10 Sep 2006 14:30:32 +0000 (14:30 +0000)
committerhuanghua <huanghua>
Sun, 10 Sep 2006 14:30:32 +0000 (14:30 +0000)
lustre/fid/fid_handler.c
lustre/fld/fld_handler.c
lustre/mdt/mdt_handler.c

index d2a5e35..47b463b 100644 (file)
@@ -350,13 +350,15 @@ static int seq_req_handle(struct ptlrpc_request *req,
                 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
                         LASSERT(!range_is_zero(in) && range_is_sane(in));
+                        */
                 }
         
                 ctx = req->rq_svc_thread->t_ctx;
                 rc = seq_server_handle(site, ctx, *opc, in, out);
-        }
+        } else
+                rc = -EPROTO;
 
         RETURN(rc);
 }
index 5903d7a..8ae70a7 100644 (file)
@@ -190,7 +190,8 @@ static int fld_req_handle(struct ptlrpc_request *req,
                 rc = fld_server_handle(site->ls_server_fld,
                                        req->rq_svc_thread->t_ctx,
                                        *opc, out, info);
-        }
+        } else
+                rc = -EPROTO;
 
         RETURN(rc);
 }
index 224ba9e..eb43567 100644 (file)
@@ -3133,7 +3133,8 @@ int mdt_postrecov(struct obd_device *obd)
         if (rc)
                 RETURN(rc);
         lu_context_enter(&ctxt);
-        rc = ld->ld_ops->ldo_recovery_complete(&ctxt,
+        if (ld && ld->ld_ops && ld->ld_ops->ldo_recovery_complete)
+                rc = ld->ld_ops->ldo_recovery_complete(&ctxt,
                                                md2lu_dev(mdt->mdt_child));
         lu_context_exit(&ctxt);
         lu_context_fini(&ctxt);