Skip to content

Commit 0b08b61

Browse files
committed
MAGETWO-83560: Deadlock on product creation
1 parent d2ee3e6 commit 0b08b61

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/code/Magento/Catalog/Plugin/Model/ResourceModel/ReadSnapshotPlugin.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,13 @@ public function __construct(
4242

4343
/**
4444
* @param ReadSnapshot $subject
45-
* @param \Closure $proceed
46-
* @param string $entityType
4745
* @param array $entityData
48-
* @param array $arguments
46+
* @param string $entityType
4947
* @return array
5048
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
5149
*/
52-
public function aroundExecute(ReadSnapshot $subject, \Closure $proceed, $entityType, $entityData, $arguments = [])
50+
public function afterExecute(ReadSnapshot $subject, array $entityData, $entityType)
5351
{
54-
$entityData = $proceed($entityType, $entityData, $arguments);
5552
if (!in_array($entityType, [ProductInterface::class, CategoryInterface::class], true)) {
5653
return $entityData;
5754
}

0 commit comments

Comments
 (0)