28 $dbws = is_array( $dbws ) ? $dbws : [ $dbws ];
29 foreach ( $dbws as $dbw ) {
30 if ( $dbw && $dbw->trxLevel() ) {
31 $dbw->onTransactionResolution( [ $this,
'cancelOnRollback' ],
$fname );
37 if ( $this->callback ) {
38 call_user_func( $this->callback );
47 if ( $trigger === IDatabase::TRIGGER_ROLLBACK ) {
48 $this->callback =
null;
61 $this->trxRoundRequirement = $mode;