List:Commits« Previous MessageNext Message »
From:U-ROWVWADEjas Date:November 10 2007 7:20pm
Subject:bk commit into 6.0 tree (jas:1.2663)
View as plain text  
Below is the list of changes that have just been committed into a local
6.0 repository of . When  does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-11-10 14:20:31-05:00, jas@rowvwade. +1 -0
  Fix typo.

  storage/falcon/Log.cpp@stripped, 2007-11-10 14:20:24-05:00, jas@rowvwade. +8 -6
    Fix typo.

diff -Nrup a/storage/falcon/Log.cpp b/storage/falcon/Log.cpp
--- a/storage/falcon/Log.cpp	2007-11-10 14:12:52 -05:00
+++ b/storage/falcon/Log.cpp	2007-11-10 14:20:24 -05:00
@@ -177,20 +177,22 @@ void Log::addListener(int mask, Listener
 void Log::deleteListener(Listener *fn, void *arg)
 {
 	ENTER_CRITICAL_SECTION;
-
-	for (LogListener **ptr = &listeners, *listener; (listener = *ptr); ptr = &listener->next)
+	LogListener **ptr = &listeners, *listener;
+	activeMask = 0;
+	
+	for (; (listener = *ptr); ptr = &listener->next)
 		if (listener->listener == fn && listener->arg == arg)
 			{
 			*ptr = listener->next;
 			delete listener;
 			break;
 			}
-
-	activeMask = 0;
+		else
+			activeMask |= listener->mask;
 	
-	for (LogListener *lissn = listeners; lissn; lissn = lissn->next)
+	for (listener = *ptr; listener; listener = listener->next)
 		activeMask |= listener->mask;
-		
+
 	LEAVE_CRITICAL_SECTION;
 }
 
Thread
bk commit into 6.0 tree (jas:1.2663)U-ROWVWADEjas10 Nov