X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueueDB.php;h=c13f5396af77521975346fb14ddde4dc3763b8c1;hp=c3193c3ba71ddf762ed85403782898045f22a8ac;hb=478a58f63101f2b47d18a618296b5e7970fa3f24;hpb=981e98179a48cdba456c7f108c00b4e3cab92265 diff --git a/includes/jobqueue/JobQueueDB.php b/includes/jobqueue/JobQueueDB.php index c3193c3ba7..c13f5396af 100644 --- a/includes/jobqueue/JobQueueDB.php +++ b/includes/jobqueue/JobQueueDB.php @@ -507,7 +507,7 @@ class JobQueueDB extends JobQueue { // jobs to become no-ops without any actual jobs that made them redundant. $dbw = $this->getMasterDB(); $cache = $this->dupCache; - $dbw->onTransactionIdle( + $dbw->onTransactionCommitOrIdle( function () use ( $cache, $params, $key ) { $timestamp = $cache->get( $key ); // current last timestamp of this job if ( $timestamp && $timestamp >= $params['rootJobTimestamp'] ) {