dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Rename autonym for 'no' from 'norsk bokmål' to 'norsk'"
[lhc/web/wiklou.git]
/
includes
/
deferred
/
AutoCommitUpdate.php
diff --git
a/includes/deferred/AutoCommitUpdate.php
b/includes/deferred/AutoCommitUpdate.php
index
d26cf9d
..
f9297af
100644
(file)
--- a/
includes/deferred/AutoCommitUpdate.php
+++ b/
includes/deferred/AutoCommitUpdate.php
@@
-1,5
+1,7
@@
<?php
<?php
+use Wikimedia\Rdbms\IDatabase;
+
/**
* Deferrable Update for closure/callback updates that should use auto-commit mode
* @since 1.28
/**
* Deferrable Update for closure/callback updates that should use auto-commit mode
* @since 1.28
@@
-23,7
+25,7
@@
class AutoCommitUpdate implements DeferrableUpdate, DeferrableCallback {
$this->callback = $callback;
if ( $this->dbw->trxLevel() ) {
$this->callback = $callback;
if ( $this->dbw->trxLevel() ) {
- $this->dbw->onTransactionResolution( [ $this, 'cancelOnRollback' ] );
+ $this->dbw->onTransactionResolution( [ $this, 'cancelOnRollback' ]
, $fname
);
}
}
}
}