We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf2cde9 + b204f6f commit e45e7e0Copy full SHA for e45e7e0
app/code/Magento/CatalogRule/Model/Indexer/IndexerTableSwapper.php
@@ -122,4 +122,14 @@ public function swapIndexTables(array $originalTablesNames)
122
$this->resourceConnection->getConnection()->dropTable($tableName);
123
}
124
125
+
126
+ /**
127
+ * Cleanup leftover temporary tables
128
+ */
129
+ public function __destruct()
130
+ {
131
+ foreach ($this->temporaryTables as $tableName) {
132
+ $this->resourceConnection->getConnection()->dropTable($tableName);
133
+ }
134
135
0 commit comments