X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FForkController.php;h=2dde17be0803e073ea7a5e69c724d38cb4eac6dc;hb=f866dd9db945f0433aa4dcb25502e73d628ea2ef;hp=27257534988a652afba3c97c62d33017a483bfa6;hpb=601519ee36462faabacf4547c9aefaf7e8726476;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ForkController.php b/includes/ForkController.php index 2725753498..2dde17be08 100644 --- a/includes/ForkController.php +++ b/includes/ForkController.php @@ -19,6 +19,7 @@ * * @file */ +use MediaWiki\MediaWikiServices; /** * Class for managing forking command line scripts. @@ -150,7 +151,7 @@ class ForkController { protected function prepareEnvironment() { global $wgMemc; // Don't share DB, storage, or memcached connections - wfGetLBFactory()->destroyInstance(); + MediaWikiServices::resetChildProcessServices(); FileBackendGroup::destroySingleton(); LockManagerGroup::destroySingletons(); JobQueueGroup::destroySingletons();