[Pvfs2-cvs] commit by pcarns in pvfs2-1/src/io/bmi/bmi_tcp: bmi-tcp.c

CVS commit program cvs at parl.clemson.edu
Tue Jan 8 16:18:41 EST 2008


Update of /projects/cvsroot/pvfs2-1/src/io/bmi/bmi_tcp
In directory parlweb1:/tmp/cvs-serv15845/src/io/bmi/bmi_tcp

Modified Files:
	bmi-tcp.c 
Log Message:
test programs and fix for eager recv bug in bmi_tcp


Index: bmi-tcp.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/io/bmi/bmi_tcp/bmi-tcp.c,v
diff -p -u -r1.126 -r1.127
--- bmi-tcp.c	7 Dec 2007 23:05:11 -0000	1.126
+++ bmi-tcp.c	8 Jan 2008 21:18:41 -0000	1.127
@@ -2410,9 +2410,9 @@ static int tcp_post_recv_generic(bmi_op_
 
 	/* whoohoo- it is already done! */
 	/* copy buffer out to list segments; handle short case */
-	for (i = 0; i < query_op->list_count; i++)
+	for (i = 0; i < list_count; i++)
 	{
-	    copy_size = query_op->size_list[i];
+	    copy_size = size_list[i];
 	    if (copy_size + total_copied > query_op->actual_size)
 	    {
 		copy_size = query_op->actual_size - total_copied;
@@ -2454,9 +2454,9 @@ static int tcp_post_recv_generic(bmi_op_
 
 	/* copy what we have so far into the correct buffers */
 	total_copied = 0;
-	for (i = 0; i < query_op->list_count; i++)
+	for (i = 0; i < list_count; i++)
 	{
-	    copy_size = query_op->size_list[i];
+	    copy_size = size_list[i];
 	    if (copy_size + total_copied > query_op->amt_complete)
 	    {
 		copy_size = query_op->amt_complete - total_copied;



More information about the Pvfs2-cvs mailing list