From 818835185a2970cc12e1c2ce88cf559b1ce95eaf Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 12 Apr 2006 00:04:38 +0000 Subject: [PATCH] Remove live profiling hack that domas accidentally committed --- includes/GlobalFunctions.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index f532c7e34f..795883e648 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1494,19 +1494,6 @@ function wfMkdirParents( $fullDir, $mode ) { */ function wfIncrStats( $key ) { global $wgDBname, $wgMemc; - /* LIVE HACK AVOID MEMCACHED ACCESSES DURING HIGH LOAD */ - if ($wgDBname != 'enwiki' and $wgDBname != 'dewiki' and $wgDBname != 'commonswiki' and $wgDBname != 'testwiki') - return true; - static $socket; - if (!$socket) { - $socket=socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); - $statline="{$wgDBname} - 1 1 1 1 1 -total\n"; - socket_sendto($socket,$statline,strlen($statline),0,"webster","3811"); - } - $statline="{$wgDBname} - 1 1 1 1 1 {$key}\n"; - socket_sendto($socket,$statline,strlen($statline),0,"webster","3811"); - return true; - $key = "$wgDBname:stats:$key"; if ( is_null( $wgMemc->incr( $key ) ) ) { $wgMemc->add( $key, 1 ); -- 2.20.1