diff --git a/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Eav/Abstract.php b/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Eav/Abstract.php index 9f9bfad2096..d419299cbb7 100644 --- a/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Eav/Abstract.php +++ b/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Eav/Abstract.php @@ -99,9 +99,7 @@ public function reindexEntities($processIds) $adapter->delete($this->getMainTable(), $where); // insert new index - $this->useDisableKeys(false); $this->insertFromTable($this->getIdxTable(), $this->getMainTable()); - $this->useDisableKeys(true); $adapter->commit(); } catch (Exception $e) { diff --git a/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php b/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php index e47edf16b91..9ed68d60c5d 100644 --- a/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php +++ b/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php @@ -131,9 +131,7 @@ protected function _copyIndexDataToMainTable($processIds) $write->delete($this->getIdxTable(), $where); // insert new index - $this->useDisableKeys(false); $this->insertFromTable($this->getIdxTable(), $this->getMainTable()); - $this->useDisableKeys(true); $this->commit(); } catch (Exception $e) { diff --git a/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price/Default.php b/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price/Default.php index e65b779c66b..acdc98298ae 100644 --- a/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price/Default.php +++ b/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price/Default.php @@ -136,11 +136,9 @@ public function reindexAll() */ public function reindexEntity($entityIds) { - $this->useDisableKeys(false); $this->_prepareFinalPriceData($entityIds); $this->_applyCustomOption(); $this->_movePriceDataToIndexTable(); - $this->useDisableKeys(true); return $this; } diff --git a/app/code/core/Mage/Index/Model/Indexer/Abstract.php b/app/code/core/Mage/Index/Model/Indexer/Abstract.php index 8a4fe32dce2..a405dbf6020 100644 --- a/app/code/core/Mage/Index/Model/Indexer/Abstract.php +++ b/app/code/core/Mage/Index/Model/Indexer/Abstract.php @@ -191,7 +191,6 @@ public function disableKeys() $resourceModel = $this->getResource(); if ($resourceModel instanceof Mage_Index_Model_Resource_Abstract) { - $resourceModel->useDisableKeys(true); $resourceModel->disableTableKeys(); } @@ -211,7 +210,6 @@ public function enableKeys() $resourceModel = $this->getResource(); if ($resourceModel instanceof Mage_Index_Model_Resource_Abstract) { - $resourceModel->useDisableKeys(true); $resourceModel->enableTableKeys(); } diff --git a/app/code/core/Mage/Index/Model/Resource/Abstract.php b/app/code/core/Mage/Index/Model/Resource/Abstract.php index 3de750ac641..3b52eb398a0 100644 --- a/app/code/core/Mage/Index/Model/Resource/Abstract.php +++ b/app/code/core/Mage/Index/Model/Resource/Abstract.php @@ -48,7 +48,7 @@ abstract class Mage_Index_Model_Resource_Abstract extends Mage_Core_Model_Resour * * @var bool */ - protected $_isDisableKeys = true; + protected $_isDisableKeys = false; /** * Whether table changes are allowed