26 $this->callback = $callback;
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 );
44 ( $this->callback )( $this->dbw, $this->fname );
57 if ( $trigger === IDatabase::TRIGGER_ROLLBACK ) {
58 $this->callback =
null;
Deferrable Update for closure/callback updates that should use auto-commit mode.
doUpdate()
Perform the actual work.
cancelOnRollback( $trigger)
__construct(IDatabase $dbw, $fname, callable $callback, array $conns=[])
Callback wrapper that has an originating method.
Interface that deferrable updates should implement.