[Spread-cvs] commit: r600 - branches/spread_4_2_debug/daemon

jschultz at spread.org jschultz at spread.org
Tue Oct 22 14:32:49 EDT 2013


Author: jschultz
Date: 2013-10-22 14:32:49 -0400 (Tue, 22 Oct 2013)
New Revision: 600

Modified:
   branches/spread_4_2_debug/daemon/membership.c
Log:
Debug of Backoff_membership


Modified: branches/spread_4_2_debug/daemon/membership.c
===================================================================
--- branches/spread_4_2_debug/daemon/membership.c	2013-10-22 18:23:57 UTC (rev 599)
+++ branches/spread_4_2_debug/daemon/membership.c	2013-10-22 18:32:49 UTC (rev 600)
@@ -2198,13 +2198,17 @@
 	int	pack_entry;
 	int	i;
 
+	Alarm(MEMB, "Backoff_membership entered: Last_discarded = %d; Highest_seq = %d; Aru = %d; My_aru = %d\n", Last_discarded, Highest_seq, Aru, My_aru);
+
 	pack_entry=-1;
 	for( i=Last_discarded+1; i <= Highest_seq; i++ )
 	{
 		/* clear dummy messages */
 		pack_entry = i & PACKET_MASK;
-		if( Packets[pack_entry].exist == 3 )
+		if( Packets[pack_entry].exist == 3 ) {
+			Alarm(MEMB, "Backoff_membership: reverting dummy hole to true hole for packet %d\n", pack_entry);
 			Packets[pack_entry].exist = 0;
+		}
 	}
 
 	/* return Aru and My_aru */
@@ -2217,6 +2221,8 @@
 		if( !Packets[pack_entry].exist ) break;
 		My_aru++;
 	}
+
+	Alarm(MEMB, "Backoff_membership leaving: Last_discarded = %d; Highest_seq = %d; Aru = %d; My_aru = %d\n", Last_discarded, Highest_seq, Aru, My_aru);
 }
 
 void	Memb_commit()




More information about the Spread-cvs mailing list