Index: branches/wmf-deployment-2009-10-01/maintenance/storage/make-all-blobs |
— | — | @@ -0,0 +1,18 @@ |
| 2 | +#!/bin/bash |
| 3 | + |
| 4 | +if [ -z $1 ];then |
| 5 | + echo "Usage: make-all-blobs <server> [<table name>]" |
| 6 | + exit 1 |
| 7 | +fi |
| 8 | +server=$1 |
| 9 | +if [ -z $2 ]; then |
| 10 | + table=blobs |
| 11 | +else |
| 12 | + table=$2 |
| 13 | +fi |
| 14 | + |
| 15 | +for db in `</home/wikipedia/common/all.dblist`;do |
| 16 | + echo "CREATE DATABASE IF NOT EXISTS $db" | mysql -u wikiadmin -p`wikiadmin_pass` -h $server && \ |
| 17 | + sed "s/blobs\>/$table/" blobs.sql | mysql -u wikiadmin -p`wikiadmin_pass` -h $server $db |
| 18 | +done |
| 19 | + |
Property changes on: branches/wmf-deployment-2009-10-01/maintenance/storage/make-all-blobs |
___________________________________________________________________ |
Name: svn:mergeinfo |
1 | 20 | + /branches/REL1_15/phase3/maintenance/storage/make-all-blobs:51646 |
/trunk/phase3/maintenance/storage/make-all-blobs:52290,52402,52404,52718,52737,52759,52776,52791,52800,52808,52812-52813,52815-52819,52822,52846,52850,52852-52853,52855-52857,52859,52924,52986,53128-53129,53190,53197,53199,53203-53204,53210-53211,53247,53249,53252,53267,53270,53293,53305,53344,53369,53427,53502-53504,53506,53777,54384,54494,54592,54599-54602,54604,54613,54764,54793,54806,55178,55626,56325,56862,56867 |
Name: svn:executable |
2 | 21 | + * |
Index: branches/wmf-deployment-2009-10-01/maintenance/storage/testRctComplete.php |
— | — | @@ -0,0 +1,22 @@ |
| 2 | +<?php |
| 3 | +require_once( dirname(__FILE__).'/../commandLine.inc' ); |
| 4 | + |
| 5 | +$bad = 0; |
| 6 | +$good = 0; |
| 7 | +foreach ( $wgLocalDatabases as $wiki ) { |
| 8 | + $lb = wfGetLB( $wiki ); |
| 9 | + $db = $lb->getConnection( DB_SLAVE, array(), $wiki ); |
| 10 | + if ( $db->tableExists( 'blob_tracking' ) ) { |
| 11 | + $notDone = $db->selectField( 'blob_tracking', '1', |
| 12 | + array( 'bt_moved' => 0 ) ); |
| 13 | + if ( $notDone ) { |
| 14 | + $bad++; |
| 15 | + echo "$wiki\n"; |
| 16 | + } else { |
| 17 | + $good++; |
| 18 | + } |
| 19 | + } |
| 20 | + $lb->reuseConnection( $db ); |
| 21 | +} |
| 22 | +echo "$bad wiki(s) incomplete\n"; |
| 23 | +echo "$good wiki(s) complete\n"; |
Property changes on: branches/wmf-deployment-2009-10-01/maintenance/storage/testRctComplete.php |
___________________________________________________________________ |
Name: svn:mergeinfo |
1 | 24 | + /branches/REL1_15/phase3/maintenance/storage/testRctComplete.php:51646 |
/trunk/phase3/maintenance/storage/testRctComplete.php:52290,52402,52404,52718,52737,52759,52776,52791,52800,52808,52812-52813,52815-52819,52822,52846,52850,52852-52853,52855-52857,52859,52924,52986,53128-53129,53190,53197,53199,53203-53204,53210-53211,53247,53249,53252,53267,53270,53293,53305,53344,53369,53427,53502-53504,53506,53777,54384,54494,54592,54599-54602,54604,54613,54764,54793,54806,55178,55626,56325,56862,56867 |
Name: svn:eol-style |
2 | 25 | + native |
Index: branches/wmf-deployment-2009-10-01/maintenance/jobs-loop.sh |
— | — | @@ -0,0 +1,33 @@ |
| 2 | +#!/bin/bash |
| 3 | + |
| 4 | +trap 'kill %-; exit' SIGTERM |
| 5 | +[ ! -z "$1" ] && { |
| 6 | + echo "starting type-specific job runner: $1" |
| 7 | + type=$1 |
| 8 | +} |
| 9 | + |
| 10 | +cd `readlink -f /usr/local/apache/common/wmf-deployment/maintenance` |
| 11 | +while [ 1 ];do |
| 12 | + db= |
| 13 | + while [ -z $db ];do |
| 14 | + if [ ! -z "$type" ]; then |
| 15 | + db=`php -n nextJobDB.php --type=$type` |
| 16 | + else |
| 17 | + db=`php -n nextJobDB.php` |
| 18 | + fi |
| 19 | + |
| 20 | + if [ -z $db ];then |
| 21 | + # No jobs to do, wait for a while |
| 22 | + echo "No jobs..." |
| 23 | + sleep 5 |
| 24 | + fi |
| 25 | + done |
| 26 | + echo $db |
| 27 | + if [ ! -z "$type" ]; then |
| 28 | + nice -n 20 php runJobs.php $db --procs=4 $type & |
| 29 | + else |
| 30 | + nice -n 20 php runJobs.php $db --procs=4 & |
| 31 | + fi |
| 32 | + wait |
| 33 | +done |
| 34 | + |
Property changes on: branches/wmf-deployment-2009-10-01/maintenance/jobs-loop.sh |
___________________________________________________________________ |
Name: svn:mergeinfo |
1 | 35 | + /branches/REL1_15/phase3/maintenance/jobs-loop.sh:51646 |
/trunk/phase3/maintenance/jobs-loop.sh:52290,52402,52404,52718,52737,52759,52776,52791,52800,52808,52812-52813,52815-52819,52822,52846,52850,52852-52853,52855-52857,52859,52924,52986,53128-53129,53190,53197,53199,53203-53204,53210-53211,53247,53249,53252,53267,53270,53293,53305,53344,53369,53427,53502-53504,53506,53777,54384,54494,54592,54599-54602,54604,54613,54764,54793,54806,55178,55626,56325,56862,56867 |
Name: svn:eol-style |
2 | 36 | + native |
Name: svn:executable |
3 | 37 | + * |
Index: branches/wmf-deployment-2009-10-01/math/GNUmakefile |
— | — | @@ -0,0 +1,2 @@ |
| 2 | +all: |
| 3 | + @echo "Do not run make on the NFS copy, use scap to rebuild it everywhere" |
Property changes on: branches/wmf-deployment-2009-10-01/math |
___________________________________________________________________ |
Name: svn:mergeinfo |
1 | 4 | + /branches/REL1_15/phase3/math:51646 |
/branches/wmf-deployment/math:53317 |
Index: branches/wmf-deployment-2009-10-01/includes/DefaultSettings.php |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | } |
35 | 35 | |
36 | 36 | /** MediaWiki version number */ |
37 | | -$wgVersion = '1.16alpha'; |
| 37 | +$wgVersion = '1.16alpha-wmf'; |
38 | 38 | |
39 | 39 | /** Name of the site. It must be changed in LocalSettings.php */ |
40 | 40 | $wgSitename = 'MediaWiki'; |