Skip to content

Commit 0fd59b6

Browse files
committed
MC-38168: Manual Indexer after Merchandising - Empty Catalog/ Number of products incorrect
1 parent 2e63d0c commit 0fd59b6

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,7 @@ public function reindexAllInvalid()
8585
// Skip indexers having shared index that was already complete
8686
$sharedIndex = $indexerConfig['shared_index'] ?? null;
8787
if (!in_array($sharedIndex, $this->sharedIndexesComplete)) {
88-
if (!empty($sharedIndex)) {
89-
$sharedIndexer = $this->indexerFactory->create()->load($sharedIndex);
90-
if ($sharedIndexer->getView()->isEnabled()) {
91-
$sharedIndexer->getView()->suspend();
92-
}
93-
}
9488
$indexer->reindexAll();
95-
if (!empty($sharedIndex)) {
96-
if ($sharedIndexer->getView()->isEnabled()) {
97-
$sharedIndexer->getView()->resume();
98-
}
99-
}
10089

10190
if (!empty($sharedIndex) && $this->makeSharedValid->execute($sharedIndex)) {
10291
$this->sharedIndexesComplete[] = $sharedIndex;

0 commit comments

Comments
 (0)