Skip to content

Commit 618b4b0

Browse files
committed
MC-22212: 1213 Deadlock found when trying to get lock
1 parent f8dd4f0 commit 618b4b0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/code/Magento/CatalogInventory/Model/ResourceModel/Stock/Item.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ public function updateSetOutOfStock(int $websiteId)
219219
$connection->update($this->getMainTable(), $values, $where);
220220

221221
$this->stockIndexerProcessor->markIndexerAsInvalid();
222+
$this->priceIndexProcessor->markIndexerAsInvalid();
222223
}
223224

224225
/**
@@ -251,6 +252,7 @@ public function updateSetInStock(int $websiteId)
251252
$connection->update($this->getMainTable(), $values, $where);
252253

253254
$this->stockIndexerProcessor->markIndexerAsInvalid();
255+
$this->priceIndexProcessor->markIndexerAsInvalid();
254256
}
255257

256258
/**

app/code/Magento/Indexer/Model/ResourceModel/AbstractResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function insertFromSelect($select, $destTable, array $columns, $readToInd
141141

142142
if ($from === $to) {
143143
$query = $select->insertFromSelect($destTable, $columns);
144-
$to->query('SET TRANSACTION ISOLATION LEVEL READ COMMITTED;');
144+
// $to->query('SET TRANSACTION ISOLATION LEVEL READ COMMITTED;');
145145
$to->query($query);
146146
} else {
147147
$stmt = $from->query($select);

0 commit comments

Comments
 (0)