coren has submitted this change and it was merged.
Change subject: Two minor bugfixes to maintain-replicas.pl
......................................................................
Two minor bugfixes to maintain-replicas.pl
- one of the where clauses had == rather than =
- is_closed was not correctly populated on meta_p.wiki
Change-Id: I734791ae3fb5a1434881f06cbb9e84e673f41d51
---
M maintain-replicas/maintain-replicas.pl
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
coren: Verified; Looks good to me, approved
diff --git a/maintain-replicas/maintain-replicas.pl
b/maintain-replicas/maintain-replicas.pl
index 242001d..e9a9e72 100755
--- a/maintain-replicas/maintain-replicas.pl
+++ b/maintain-replicas/maintain-replicas.pl
@@ -144,7 +144,7 @@
ar_deleted, if(ar_deleted&1,null,ar_len) as ar_len,
ar_page_id, ar_parent_id,
if(ar_deleted&1,null,ar_sha1) as ar_sha1',
- 'where' => '(ar_deleted&1)==0' },
+ 'where' => '(ar_deleted&1)=0' },
'globaluser' => {
'source' => 'globaluser',
@@ -432,7 +432,6 @@
$twiddlum = 0 if ++$twiddlum == 4;
}
-
foreach my $slice (keys %byslice) {
next unless $doslice{$slice};
my ($dbhost, $dbport) = @{$slices{$slice}};
@@ -515,6 +514,7 @@
$fields{'family'} = quote($db->{family}) if defined $db->{'family'};
$fields{'lang'} = quote($db->{lang}) if defined $db->{'lang'};
$fields{'name'} = quote($db->{name}) if defined $db->{'lang'};
+ $fields{'is_closed'} = quote($db->{'closed'}) if defined
$db->{'closed'};
my $q = "INSERT INTO meta_p.wiki(".join(',',keys %fields).") VALUES
(".join(',',values %fields).");";
sql($q);
}
--
To view, visit https://gerrit.wikimedia.org/r/102318
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I734791ae3fb5a1434881f06cbb9e84e673f41d51
Gerrit-PatchSet: 1
Gerrit-Project: operations/software
Gerrit-Branch: master
Gerrit-Owner: coren <[email protected]>
Gerrit-Reviewer: coren <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits