Last modified: 2014-06-16 00:07:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68465, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66465 - Don't manipulate site_stats table manually
Don't manipulate site_stats table manually
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UserMerge (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Kunal Mehta (Legoktm)
: performance
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-11 05:42 UTC by Kunal Mehta (Legoktm)
Modified: 2014-06-16 00:07 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2014-06-11 05:42:19 UTC
In UserMerge::deleteUser:

$users = $dbw->selectField(
	'user',
	'COUNT(*)',
	array()
);
$dbw->update( 'site_stats',
	array( 'ss_users' => $users ),
	array( 'ss_row_id' => 1 )
);

Needs to use SiteStatsUpdate.
Comment 1 Gerrit Notification Bot 2014-06-11 05:49:01 UTC
Change 138778 had a related patch set uploaded by Legoktm:
Use SiteStatsUpdate instead of manually updating the table

https://gerrit.wikimedia.org/r/138778
Comment 2 Gerrit Notification Bot 2014-06-16 00:01:32 UTC
Change 138778 merged by jenkins-bot:
Use SiteStatsUpdate instead of manually updating the table

https://gerrit.wikimedia.org/r/138778

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links