Page MenuHomePhabricator

CleanupAncientTables.php runs even without --force
Open, Needs TriagePublic

Description

The CleanupAncientTables.php maintenance script always runs, regardless of the absence of the --force option.

It's unclear if the script was supposed to abort immediately after the error message (which it doesn't, since the die parameter isn't set) or if it was supposed to do a dry run and the code was never added for that.

Event Timeline

Apparently I wrote this in 2012. Why, or for what exactly, I'm not sure. It was labelled as being WIP - rMW25017c83e13c: Work in progress (can kill another patch hanging around in my working copy)

It should probably just be dropped.

Change 684133 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/core@master] Delete maintenance/cleanupAncientTables.php

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

Change 684133 merged by jenkins-bot:

[mediawiki/core@master] Delete maintenance/cleanupAncientTables.php

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

Change 684456 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/core@REL1_35] Delete maintenance/cleanupAncientTables.php

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

Change 684457 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/core@REL1_36] Delete maintenance/cleanupAncientTables.php

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

Change 684457 merged by jenkins-bot:

[mediawiki/core@REL1_36] Delete maintenance/cleanupAncientTables.php

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

Change 684456 merged by jenkins-bot:

[mediawiki/core@REL1_35] Delete maintenance/cleanupAncientTables.php

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