27 $this->callback = $callback;
30 foreach ( $conns as $conn ) {
31 if ( $conn->trxLevel() ) {
38 if ( $this->callback ) {
39 $this->dbw->doAtomicSection( $this->fname, $this->callback );
48 if ( $trigger === IDatabase::TRIGGER_ROLLBACK ) {
49 $this->callback =
null;
Deferrable Update for closure/callback updates via IDatabase::doAtomicSection()
__construct(IDatabase $dbw, $fname, callable $callback, array $conns=[])
doUpdate()
Perform the actual work.
cancelOnRollback( $trigger)
Callback wrapper that has an originating method.
Interface that deferrable updates should implement.