coren has submitted this change and it was merged.
Change subject: maintain-replicas: Don't try to create _p DBs for
private/deleted wikis
......................................................................
maintain-replicas: Don't try to create _p DBs for private/deleted wikis
Change-Id: I375cba288740b1585be435e6ee16a00e44c15897
---
M maintain-replicas/maintain-replicas.pl
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Chad: Looks good to me, but someone else must approve
coren: Verified; Looks good to me, approved
diff --git a/maintain-replicas/maintain-replicas.pl
b/maintain-replicas/maintain-replicas.pl
index 87890cd..c7d43e2 100755
--- a/maintain-replicas/maintain-replicas.pl
+++ b/maintain-replicas/maintain-replicas.pl
@@ -487,6 +487,9 @@
$| = 1;
foreach my $dbk (keys %db) {
+ my $db = $db{$dbk};
+ next if defined $db->{'deleted'};
+ next if defined $db->{'private'};
sql("CREATE DATABASE ${dbk}_p;") if sql("SHOW DATABASES LIKE
'${dbk}_p';") == 0;
print "Views for ${dbk}: ";
foreach my $view (@fullviews) {
--
To view, visit https://gerrit.wikimedia.org/r/227735
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I375cba288740b1585be435e6ee16a00e44c15897
Gerrit-PatchSet: 2
Gerrit-Project: operations/software
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: coren <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits