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

CVS commit program cvs at parl.clemson.edu
Sat Feb 14 23:31:15 EST 2004


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

Modified Files:
	msgpairarray.sm 
Log Message:
Little bit better job of failure handling in msgpairarray.


Index: msgpairarray.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/client/sysint/msgpairarray.sm,v
diff -p -u -r1.18 -r1.19
--- msgpairarray.sm	15 Feb 2004 04:16:35 -0000	1.18
+++ msgpairarray.sm	15 Feb 2004 04:31:15 -0000	1.19
@@ -175,7 +175,8 @@ static int msgpairarray_post(PINT_client
 	    msg_p->send_id = 0;
 
 	    /* mark send as bad too and don't post it */
-	    msg_p->send_status.error_code = PVFS_EIO; /* ??? */
+	    /* TODO: what should this error be?  copy of recv? */
+	    msg_p->send_status.error_code = -PVFS_EIO;
 	    continue;
 	}
 	assert(ret == 0); /* return value range check */
@@ -293,7 +294,13 @@ static int msgpairarray_completion_fn(PI
 	if (msg_p->send_status.error_code != 0 ||
 	    msg_p->recv_status.error_code != 0)
 	{
-	    js_p->error_code = msg_p->send_status.error_code;
+	    /* save a failed error code */
+	    if (msg_p->send_status.error_code) {
+		js_p->error_code = msg_p->send_status.error_code;
+	    }
+	    else {
+		js_p->error_code = msg_p->recv_status.error_code;
+	    }
 
 	    /* don't call comp fn on these -- RobR */
 	    gossip_err("msg pair did not complete; skipping comp_fn\n");



More information about the PVFS2-CVS mailing list