Go to the documentation of this file.
29 foreach ( $conns as $conn ) {
30 if ( $conn->trxLevel() ) {
37 if ( !$this->callback ) {
41 $autoTrx = $this->dbw->getFlag(
DBO_TRX );
42 $this->dbw->clearFlag(
DBO_TRX );
47 }
catch ( Exception $e ) {
62 if ( $trigger === IDatabase::TRIGGER_ROLLBACK ) {
63 $this->callback =
null;
cancelOnRollback( $trigger)
Deferrable Update for closure/callback updates that should use auto-commit mode.
__construct(IDatabase $dbw, $fname, callable $callback, array $conns=[])
Callback wrapper that has an originating method.
Interface that deferrable updates should implement.
doUpdate()
Perform the actual work.