Use this instead of bogus destroyInstance() call to LBFactory.
Change-Id: Iaf62925c0b3bf364dbaca8160f9c5bbfd97670ab
+use MediaWiki\MediaWikiServices;
/**
* Class for managing forking command line scripts.
/**
* Class for managing forking command line scripts.
protected function prepareEnvironment() {
global $wgMemc;
// Don't share DB, storage, or memcached connections
protected function prepareEnvironment() {
global $wgMemc;
// Don't share DB, storage, or memcached connections
- wfGetLBFactory()->destroy();
+ MediaWikiServices::resetChildProcessServices();
FileBackendGroup::destroySingleton();
LockManagerGroup::destroySingletons();
JobQueueGroup::destroySingletons();
FileBackendGroup::destroySingleton();
LockManagerGroup::destroySingletons();
JobQueueGroup::destroySingletons();