[PVFS2-CVS] commit by neill in pvfs2/src/client/sysint: msgpair.sm

CVS commit program cvs at parl.clemson.edu
Wed Feb 25 14:43:06 EST 2004


Update of /projects/cvsroot/pvfs2/src/client/sysint
In directory parlweb:/tmp/cvs-serv7257/src/client/sysint

Modified Files:
	msgpair.sm 
Log Message:
- transition to error state if there's a failure posting a msgpair recv


Index: msgpair.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/client/sysint/msgpair.sm,v
diff -p -u -r1.23 -r1.24
--- msgpair.sm	30 Jan 2004 20:12:10 -0000	1.23
+++ msgpair.sm	25 Feb 2004 19:43:06 -0000	1.24
@@ -175,11 +175,18 @@ static int msgpair_post(PINT_client_sm *
 	gossip_err("msgpair_post: failure in job_bmi_recv\n");
 	assert(0);
     }
-    else if (ret == 1) {
-	/* it shouldn't be possible for the receive to complete before
-	 * we send the request.
-	 */
-	assert(0);
+    else if (ret == 1)
+    {
+        gossip_err("msgpair recv status error code is: %d\n",
+                   msg_p->recv_status.error_code);
+
+	/*
+          it shouldn't be possible for the receive to complete before
+          we send the request, but we need to report errors in posting
+          the recv if any occur
+        */
+        js_p->error_code = msg_p->recv_status.error_code;
+        return 1;
     }
     assert(ret == 0); /* return value range check */
 



More information about the PVFS2-CVS mailing list