* @ingroup Profiler
*/
-use Wikimedia\Rdbms\Database;
use Wikimedia\Rdbms\DBError;
/**
}
$fname = __METHOD__;
- $dbw->onTransactionIdle( function ( Database $dbw ) use ( $stats, $fname ) {
+ $dbw->onTransactionCommitOrIdle( function () use ( $stats, $fname, $dbw ) {
$pfhost = $this->perHost ? wfHostname() : '';
// Sqlite: avoid excess b-tree rebuilds (mostly for non-WAL mode)
// non-Sqlite: lower contention with small transactions