[PVFS2-CVS]
commit by pcarns in pvfs2/src/client/sysint: msgpairarray.sm
CVS commit program
cvs at parl.clemson.edu
Wed May 5 19:02:11 EDT 2004
Update of /projects/cvsroot/pvfs2/src/client/sysint
In directory parlweb:/tmp/cvs-serv5224
Modified Files:
msgpairarray.sm
Log Message:
minor bugfix to msgpairarray.sm, make sure that the non-retry case follows
the right error path on receive failure
Index: msgpairarray.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/client/sysint/msgpairarray.sm,v
diff -p -u -r1.34 -r1.35
--- msgpairarray.sm 30 Apr 2004 14:58:41 -0000 1.34
+++ msgpairarray.sm 5 May 2004 22:02:11 -0000 1.35
@@ -221,7 +221,8 @@ static int msgpairarray_post(PINT_client
if (ret < 0)
{
PVFS_perror("Post of receive failed", ret);
-
+ /* decrement count, we won't bother to post send */
+ sm_p->msgarray[0].comp_ct--;
js_p->error_code = ret;
return 1;
}
@@ -268,6 +269,13 @@ static int msgpairarray_post(PINT_client
msg_p->retry_count++;
goto post_msg_receive;
}
+ else
+ {
+ /* decrement count, we won't bother to post send */
+ sm_p->msgarray[0].comp_ct--;
+ js_p->error_code = status.error_code;
+ return(1);
+ }
}
/* post send of request; job_id stored in send_id */
More information about the PVFS2-CVS
mailing list