dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove wfWaitForSlaves when using Maintenance::commitTransaction
[lhc/web/wiklou.git]
/
maintenance
/
storage
/
fixT22757.php
diff --git
a/maintenance/storage/fixT22757.php
b/maintenance/storage/fixT22757.php
index
f6aa19b
..
da3ada7
100644
(file)
--- a/
maintenance/storage/fixT22757.php
+++ b/
maintenance/storage/fixT22757.php
@@
-240,7
+240,6
@@
class FixT22757 extends Maintenance {
__METHOD__
);
$this->commitTransaction( $dbw, __METHOD__ );
__METHOD__
);
$this->commitTransaction( $dbw, __METHOD__ );
- $this->waitForSlaves();
}
print "$primaryId: resolved to $url\n";
}
print "$primaryId: resolved to $url\n";
@@
-254,15
+253,6
@@
class FixT22757 extends Maintenance {
print "Good stubs: $numGood\n";
}
print "Good stubs: $numGood\n";
}
- function waitForSlaves() {
- static $iteration = 0;
- ++$iteration;
- if ( ++$iteration > 50 == 0 ) {
- wfWaitForSlaves();
- $iteration = 0;
- }
- }
-
function findTextIdInPage( $pageId, $textId ) {
$ids = $this->getRevTextMap( $pageId );
if ( !isset( $ids[$textId] ) ) {
function findTextIdInPage( $pageId, $textId ) {
$ids = $this->getRevTextMap( $pageId );
if ( !isset( $ids[$textId] ) ) {
@@
-310,9
+300,9
@@
class FixT22757 extends Maintenance {
$text = $secondaryRow->old_text;
if ( in_array( 'external', $flags ) ) {
$url = $text;
$text = $secondaryRow->old_text;
if ( in_array( 'external', $flags ) ) {
$url = $text;
-
MediaWiki
\suppressWarnings();
+
Wikimedia
\suppressWarnings();
list( /* $proto */, $path ) = explode( '://', $url, 2 );
list( /* $proto */, $path ) = explode( '://', $url, 2 );
-
MediaWiki
\restoreWarnings();
+
Wikimedia
\restoreWarnings();
if ( $path == "" ) {
return false;
if ( $path == "" ) {
return false;