r94252 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r94251
|
r94252
|
r94253
>
Date:
15:29, 11 August 2011
Author:
demon
Status:
ok
Tags:
Comment:
Wrap site_stats update in a begin()/commit() to see if this helps
* For trunk: need rewriting to use $dbw->update()
* More generally: manual site_stats updates suck, we should fix this
Modified paths:
/branches/wmf/1.17wmf1/includes/filerepo/LocalFile.php
(modified) (
history
)
Diff
[
purge
]
Index: branches/wmf/1.17wmf1/includes/filerepo/LocalFile.php
—
—
@@ -963,8 +963,10 @@
964
964
} else {
965
965
# This is a new file
966
966
# Update the image count
967
+ $dbw->begin();
967
968
$site_stats = $dbw->tableName( 'site_stats' );
968
969
$dbw->query( "UPDATE $site_stats SET ss_images=ss_images+1", __METHOD__ );
970
+ $dbw->commit();
969
971
}
970
972
971
973
$descTitle = $this->getTitle();
Follow-up revisions
Revision
Commit summary
Author
Date
r94450
Forport from 1.17wmf1 to 1.18...
hashar
10:33, 14 August 2011
r95446
Merge
r94252
to trunk...
reedy
21:31, 24 August 2011
Status & tagging log
21:31, 24 August 2011
Reedy
(
talk
|
contribs
)
changed the
tags
for r94252
[
removed:
trunk]
10:33, 14 August 2011
Hashar
(
talk
|
contribs
)
changed the
tags
for r94252
[
removed:
1.18]
18:05, 11 August 2011
Reedy
(
talk
|
contribs
)
changed the
status
of r94252
[
removed:
new
added:
ok]
18:05, 11 August 2011
Reedy
(
talk
|
contribs
)
changed the
tags
for r94252
[
added:
trunk,1.18]