From: Aaron Schulz Date: Fri, 29 Mar 2019 03:47:09 +0000 (-0700) Subject: Update DeferredUpdates::enqueueUpdates() to look for the DB domain X-Git-Tag: 1.34.0-rc.0~2244^2 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=1f628f0dc7a607a930a0b9a0cc5fc03ff0fe986e;p=lhc%2Fweb%2Fwiklou.git Update DeferredUpdates::enqueueUpdates() to look for the DB domain Change-Id: I2c786eba61ff36a9e0e2d605aa3108c9c8569063 --- diff --git a/includes/deferred/DeferredUpdates.php b/includes/deferred/DeferredUpdates.php index 3043c1052f..3b7de9df80 100644 --- a/includes/deferred/DeferredUpdates.php +++ b/includes/deferred/DeferredUpdates.php @@ -336,7 +336,8 @@ class DeferredUpdates { foreach ( $updates as $update ) { if ( $update instanceof EnqueueableDataUpdate ) { $spec = $update->getAsJobSpecification(); - JobQueueGroup::singleton( $spec['wiki'] )->push( $spec['job'] ); + $domain = $spec['domain'] ?? $spec['wiki']; + JobQueueGroup::singleton( $domain )->push( $spec['job'] ); } else { $remaining[] = $update; }