From: Aaron Schulz Date: Mon, 21 Dec 2009 17:51:10 +0000 (+0000) Subject: Fixed r57659 for high concurrency situations X-Git-Tag: 1.31.0-rc.0~38496 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=369f0535b548ee5273f367e6390c8edfabc11456;p=lhc%2Fweb%2Fwiklou.git Fixed r57659 for high concurrency situations --- diff --git a/includes/User.php b/includes/User.php index 2f2c63160f..f9ab4f098d 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1340,11 +1340,11 @@ class User { } else { wfDebug( __METHOD__ . ": ok. $key at $count $summary\n" ); } - $wgMemc->incr( $key ); } else { wfDebug( __METHOD__ . ": adding record for $key $summary\n" ); - $wgMemc->set( $key, 1, intval( $period ) ); // first ping + $wgMemc->add( $key, 0, intval( $period ) ); // first ping } + $wgMemc->incr( $key ); } wfProfileOut( __METHOD__ );