http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84560
Revision: 84560
Author: platonides
Date: 2011-03-22 21:25:03 +0000 (Tue, 22 Mar 2011)
Log Message:
-----------
(Bug 28144) - Leaking locks in the PoolCounter
Each event_add() call removes the old one, so after a timeout we need to readd
it.
That was already done in some cases by process_timeout->send_client but it's
clearer
to do it unconditionally here (the duplication is detected and ignored in
usermode).
Modified Paths:
--------------
trunk/extensions/PoolCounter/daemon/main.c
Modified: trunk/extensions/PoolCounter/daemon/main.c
===================================================================
--- trunk/extensions/PoolCounter/daemon/main.c 2011-03-22 21:21:56 UTC (rev
84559)
+++ trunk/extensions/PoolCounter/daemon/main.c 2011-03-22 21:25:03 UTC (rev
84560)
@@ -127,6 +127,7 @@
if ( type == EV_TIMEOUT ) {
process_timeout( &cli_data->client_locks );
+ event_add( &cli_data->ev, NULL );
return;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs