if ( $this->trxLevel && !$this->trxDoneWrites && $isWrite ) {
$this->trxDoneWrites = true;
$this->trxProfiler->transactionWritingIn(
- $this->server, $this->dbName, $this->trxShortId );
+ $this->server, $this->getDomainID(), $this->trxShortId );
}
if ( $this->getFlag( self::DBO_DEBUG ) ) {
- $this->queryLogger->debug( "{$this->dbName} {$commentedSql}" );
+ $this->queryLogger->debug( "{$this->getDomainID()} {$commentedSql}" );
}
# Send the query to the server and fetch any corresponding errors
$this->lastWriteTime = microtime( true );
$this->trxProfiler->transactionWritingOut(
$this->server,
- $this->dbName,
+ $this->getDomainID(),
$this->trxShortId,
$writeTime,
$this->trxWriteAffectedRows
if ( $this->trxDoneWrites ) {
$this->trxProfiler->transactionWritingOut(
$this->server,
- $this->dbName,
+ $this->getDomainID(),
$this->trxShortId,
$writeTime,
$this->trxWriteAffectedRows
use Wikimedia\Rdbms\Database;
use Wikimedia\Rdbms\IDatabase;
+use Wikimedia\Rdbms\DatabaseDomain;
use Wikimedia\Rdbms\DatabaseMysqli;
use Wikimedia\Rdbms\LBFactorySingle;
use Wikimedia\Rdbms\TransactionProfiler;
$wdb->trxProfiler = new TransactionProfiler();
$wdb->connLogger = new \Psr\Log\NullLogger();
$wdb->queryLogger = new \Psr\Log\NullLogger();
+ $wdb->currentDomain = DatabaseDomain::newUnspecified();
return $db;
}