Skip to content

Commit 6b02b96

Browse files
committed
MAGETWO-80789: [Indexer] Search Indexer is scoped & multi-threaded
1 parent 813d575 commit 6b02b96

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ class Fulltext implements \Magento\Framework\Indexer\ActionInterface, \Magento\F
8888
* @param IndexSwitcherInterface $indexSwitcher
8989
* @param Scope\State $indexScopeState
9090
* @param ProcessManager $processManager
91+
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
9192
*/
9293
public function __construct(
9394
FullFactory $fullActionFactory,
@@ -158,7 +159,6 @@ public function executeFull()
158159
$userFunctions[$storeId] = function () use ($storeId) {
159160
return $this->executeFullByStore($storeId);
160161
};
161-
162162
}
163163

164164
$this->processManager->execute($userFunctions);

app/code/Magento/Indexer/Model/ProcessManager.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ private function simpleThreadExecute($userFunctions)
7171
* Execute user functions in in multiThreads mode
7272
*
7373
* @param \Traversable $userFunctions
74+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
7475
*/
7576
private function multiThreadsExecute($userFunctions)
7677
{
@@ -108,6 +109,7 @@ private function isCanBeParalleled()
108109
* Start child process
109110
*
110111
* @param callable $userFunction
112+
* @SuppressWarnings(PHPMD.ExitExpression)
111113
*/
112114
private function startChildProcess($userFunction)
113115
{

0 commit comments

Comments
 (0)