dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46875f0
)
Fixed r57659 for high concurrency situations
author
Aaron Schulz
<aaron@users.mediawiki.org>
Mon, 21 Dec 2009 17:51:10 +0000
(17:51 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Mon, 21 Dec 2009 17:51:10 +0000
(17:51 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
2f2c631
..
f9ab4f0
100644
(file)
--- 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__ );