Following up on T197863, we run addWiki with --wiki=aawiki (hack we know)
But when we run child scripts, we don't do anything for changing the db... So they're going to be running against aawiki?
```lang=php
// Sets up the filebackend zones
$setZones = $this->runChild(
'SetZoneAccess',
"$IP/extensions/WikimediaMaintenance/filebackend/setZoneAccess.php"
);
$setZones->mOptions['backend'] = 'local-multiwrite';
if ( $this->isPrivate( $dbName ) ) {
$setZones->mOptions['private'] = 1;
}
$setZones->execute();
```
If we look at `runChild`
```lang=php
public function runChild( $maintClass, $classFile = null ) {
// Make sure the class is loaded first
if ( !class_exists( $maintClass ) ) {
if ( $classFile ) {
require_once $classFile;
}
if ( !class_exists( $maintClass ) ) {
$this->error( "Cannot spawn child: $maintClass" );
}
}
/**
* @var $child Maintenance
*/
$child = new $maintClass();
$child->loadParamsAndArgs( $this->mSelf, $this->mOptions, $this->mArgs );
if ( !is_null( $this->mDb ) ) {
$child->setDB( $this->mDb );
}
return $child;
}
```
It checks if mDb has been set to something, and alters the child to match..
The Cirrus Scripts handle this themselves...
```lang=php
$searchIndex->mOptions[ 'baseName' ] = $dbName;
```