r13594 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13593‎ | r13594 | r13595 >
Date:00:07, 12 April 2006
Author:brion
Status:old
Tags:
Comment:
* Remove live debugging hack which caused errors with certain database names
Modified paths:
  • /branches/REL1_6/phase3/RELEASE-NOTES (modified) (history)
  • /branches/REL1_6/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: branches/REL1_6/phase3/includes/GlobalFunctions.php
@@ -1494,19 +1494,6 @@
14951495 */
14961496 function wfIncrStats( $key ) {
14971497 global $wgDBname, $wgMemc;
1498 - /* LIVE HACK AVOID MEMCACHED ACCESSES DURING HIGH LOAD */
1499 - if ($wgDBname != 'enwiki' and $wgDBname != 'dewiki' and $wgDBname != 'commonswiki' and $wgDBname != 'testwiki')
1500 - return true;
1501 - static $socket;
1502 - if (!$socket) {
1503 - $socket=socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
1504 - $statline="{$wgDBname} - 1 1 1 1 1 -total\n";
1505 - socket_sendto($socket,$statline,strlen($statline),0,"webster","3811");
1506 - }
1507 - $statline="{$wgDBname} - 1 1 1 1 1 {$key}\n";
1508 - socket_sendto($socket,$statline,strlen($statline),0,"webster","3811");
1509 - return true;
1510 -
15111498 $key = "$wgDBname:stats:$key";
15121499 if ( is_null( $wgMemc->incr( $key ) ) ) {
15131500 $wgMemc->add( $key, 1 );
Index: branches/REL1_6/phase3/RELEASE-NOTES
@@ -6,9 +6,13 @@
77 == MediaWiki 1.6.4 ==
88
99 * Further improvements to Hebrew localisation
10 -* (bug 5544) Fix redirect arrow in Special:Listredirects for right-to-left languages
11 -* Replace "doubleredirectsarrow" with a content language check that picks the appropriate arrow
 10+* (bug 5544) Fix redirect arrow in Special:Listredirects for right-to-left
 11+ languages
 12+* Replace "doubleredirectsarrow" with a content language check that picks
 13+ the appropriate arrow
 14+* Remove live debugging hack which caused errors with certain database names
1215
 16+
1317 == MediaWiki 1.6.3 ==
1418
1519 April 10, 2006

Status & tagging log