Skip to content

Commit e45e7e0

Browse files
committed
Merge remote-tracking branch 'comm/fix-22273' into MC-41284
2 parents bf2cde9 + b204f6f commit e45e7e0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/code/Magento/CatalogRule/Model/Indexer/IndexerTableSwapper.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,14 @@ public function swapIndexTables(array $originalTablesNames)
122122
$this->resourceConnection->getConnection()->dropTable($tableName);
123123
}
124124
}
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+
}
125135
}

0 commit comments

Comments
 (0)