Last modified: 2014-01-05 12:32:45 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 T61126, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59126 - Remove version check for mysql 4.1 from initEditCount.php and storage/fixBug20757.php
Remove version check for mysql 4.1 from initEditCount.php and storage/fixBug2...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.23.0
All All
: Low enhancement (vote)
: ---
Assigned To: Tony Thomas
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-30 17:27 UTC by db [inactive,noenotif]
Modified: 2014-01-05 12:32 UTC (History)
2 users (show)

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


Attachments

Description db [inactive,noenotif] 2013-12-30 17:27:38 UTC
The scripts initEditCount.php and storage/fixBug20757.php has version check for a mysql version 4.1.0. MediaWiki needs at the moment 5.0.2 or later, so there is no need to do the check.
Comment 1 Gerrit Notification Bot 2013-12-31 08:51:43 UTC
Change 104713 had a related patch set uploaded by 01tonythomas:
Remove version check for mysql 4.1 from Maintenance scripts

https://gerrit.wikimedia.org/r/104713
Comment 2 p858snake 2013-12-31 08:54:48 UTC
We could probably just delete fixbug20757 most likely.
Comment 3 Gerrit Notification Bot 2013-12-31 19:20:39 UTC
Change 104713 merged by jenkins-bot:
Remove version check for mysql 4.1 from Maintenance scripts

https://gerrit.wikimedia.org/r/104713
Comment 4 Tony Thomas 2013-12-31 19:26:52 UTC
(In reply to comment #2)
> We could probably just delete fixbug20757 most likely.

Is that necessary ? If you want, lets file a separate bug for that.
Comment 5 db [inactive,noenotif] 2014-01-01 10:29:44 UTC
Bad fix in my opinion.

You have only removed one part of a AND condition, that means the condition itself was changed and not only dead code path removed.

For initEditCount.php:
You have changed the meaning for 'background mode' from 'LoadBalancer with more than one server OR mysql version < 4.1' to 'LoadBalancer with more than one server OR mysql'.

For storage/fixBug20757.php:
$lowerLeft is now a undefined variable for non-mysql server
Comment 6 Tony Thomas 2014-01-01 17:15:14 UTC
(In reply to comment #5)
> Bad fix in my opinion.
> 
> You have only removed one part of a AND condition, that means the condition
> itself was changed and not only dead code path removed.
> 
> For initEditCount.php:
> You have changed the meaning for 'background mode' from 'LoadBalancer with
> more
> than one server OR mysql version < 4.1' to 'LoadBalancer with more than one
> server OR mysql'.
so it should be like 'LoadBalancer with more than one
> server OR FALSE'. ?
> 
> For storage/fixBug20757.php:
> $lowerLeft is now a undefined variable for non-mysql server
the else should be left untouched ?
Comment 7 db [inactive,noenotif] 2014-01-05 12:32:45 UTC
For the first point: Yes, and a 'OR FALSE' is a no-operation, so you can remove that (The condition before was also a no-operation, because it always evaluated to false).

For the second point: You can also remove the outer if, because the else part maybe not working with other databases.

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


Navigation
Links