Skip to content

Commit 83a85f3

Browse files
committed
Switching indexing tables should happen for each indexer, not only for the last one.
1 parent 4de44b8 commit 83a85f3

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CatalogInventory/Model/Indexer/Stock/Action

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogInventory/Model/Indexer/Stock/Action/Full.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ public function execute($ids = null): void
199199
$connection->query($query);
200200
}
201201
}
202+
$this->activeTableSwitcher->switchTable($indexer->getConnection(), [$indexer->getMainTable()]);
202203
}
203-
$this->activeTableSwitcher->switchTable($indexer->getConnection(), [$indexer->getMainTable()]);
204204
} catch (\Exception $e) {
205205
throw new LocalizedException(__($e->getMessage()), $e);
206206
}

0 commit comments

Comments
 (0)