Skip to content

Commit 3ad1194

Browse files
committed
Merge pull request #380 from magento-troll/MAGETWO-37201
[Troll] Concurrency enhancements & bugfix
2 parents 62f5876 + 4a31f3e commit 3ad1194

File tree

94 files changed

+3280
-695
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+3280
-695
lines changed

app/code/Magento/Bundle/Model/Resource/Indexer/Price.php

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Price extends \Magento\Catalog\Model\Resource\Product\Indexer\Price\Defaul
2020
*/
2121
public function reindexAll()
2222
{
23-
$this->useIdxTable(true);
23+
$this->tableStrategy->setUseIdxTable(true);
2424

2525
$this->beginTransaction();
2626
try {
@@ -54,10 +54,7 @@ public function reindexEntity($entityIds)
5454
*/
5555
protected function _getBundlePriceTable()
5656
{
57-
if ($this->useIdxTable()) {
58-
return $this->getTable('catalog_product_index_price_bundle_idx');
59-
}
60-
return $this->getTable('catalog_product_index_price_bundle_tmp');
57+
return $this->tableStrategy->getTableName('catalog_product_index_price_bundle');
6158
}
6259

6360
/**
@@ -67,10 +64,7 @@ protected function _getBundlePriceTable()
6764
*/
6865
protected function _getBundleSelectionTable()
6966
{
70-
if ($this->useIdxTable()) {
71-
return $this->getTable('catalog_product_index_price_bundle_sel_idx');
72-
}
73-
return $this->getTable('catalog_product_index_price_bundle_sel_tmp');
67+
return $this->tableStrategy->getTableName('catalog_product_index_price_bundle_sel');
7468
}
7569

7670
/**
@@ -80,10 +74,7 @@ protected function _getBundleSelectionTable()
8074
*/
8175
protected function _getBundleOptionTable()
8276
{
83-
if ($this->useIdxTable()) {
84-
return $this->getTable('catalog_product_index_price_bundle_opt_idx');
85-
}
86-
return $this->getTable('catalog_product_index_price_bundle_opt_tmp');
77+
return $this->tableStrategy->getTableName('catalog_product_index_price_bundle_opt');
8778
}
8879

8980
/**

0 commit comments

Comments
 (0)