4
0
Эх сурвалжийг харах

Merge trunk revision 2398:
r2398 | sdake | 2009-08-28 11:20:14 -0700 (Fri, 28 Aug 2009) | 2 lines

Fix off by one calculation error resulting in assertion.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2449 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 16 жил өмнө
parent
commit
d95038d556
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      exec/totempg.c

+ 2 - 2
exec/totempg.c

@@ -942,9 +942,9 @@ static int byte_count_send_ok (
 
 
 	avail = totemmrp_avail ();
 	avail = totemmrp_avail ();
 
 
-	msg_count = (byte_count / (totempg_totem_config->net_mtu - sizeof (struct totempg_mcast) - 16));
+	msg_count = (byte_count / (totempg_totem_config->net_mtu - sizeof (struct totempg_mcast) - 16)) + 1;
 
 
-	return (avail > msg_count);
+	return (avail >= msg_count);
 }
 }
 
 
 static int send_reserve (
 static int send_reserve (