Previously, the transaction was left dangling, causing massive
unit failure.
Change-Id: I8fb6e69b44ff0ceb0cf7c4fb45f204e140472406
$this->didbegin = false;
/* If we are not in a transaction, we need to be for savepoint trickery */
if ( !$dbw->trxLevel() ) {
- $dbw->begin( "FOR SAVEPOINT", DatabasePostgres::TRANSACTION_INTERNAL );
+ $dbw->begin( __CLASS__, DatabasePostgres::TRANSACTION_INTERNAL );
$this->didbegin = true;
}
}
public function commit() {
if ( $this->didbegin ) {
- $this->dbw->commit();
+ $this->dbw->commit( __CLASS__, DatabasePostgres::FLUSHING_INTERNAL );
$this->didbegin = false;
}
}