File tree Expand file tree Collapse file tree 3 files changed +2
-16
lines changed
lib/internal/Magento/Framework/Lock/Backend Expand file tree Collapse file tree 3 files changed +2
-16
lines changed Original file line number Diff line number Diff line change 96
96
97
97
<virtualType name =" systemConfigQueryLocker" type =" Magento\Framework\Cache\LockGuardedCacheLoader" >
98
98
<arguments >
99
- <argument name =" locker" xsi : type =" object" >Magento\Framework\Lock\Backend\Cache </argument >
99
+ <argument name =" locker" xsi : type =" object" >Magento\Framework\Lock\Backend\Database </argument >
100
100
</arguments >
101
101
</virtualType >
102
102
Original file line number Diff line number Diff line change 1786
1786
</type >
1787
1787
<type name =" Magento\Framework\Cache\LockGuardedCacheLoader" >
1788
1788
<arguments >
1789
- <argument name =" locker" xsi : type =" object" >Magento\Framework\Lock\Backend\Cache </argument >
1789
+ <argument name =" locker" xsi : type =" object" >Magento\Framework\Lock\Backend\Database </argument >
1790
1790
</arguments >
1791
1791
</type >
1792
1792
<preference for =" Magento\Framework\HTTP\AsyncClientInterface" type =" Magento\Framework\HTTP\AsyncClient\GuzzleAsyncClient" />
Original file line number Diff line number Diff line change @@ -78,20 +78,6 @@ public function lock(string $name, int $timeout = -1): bool
78
78
}
79
79
$ name = $ this ->addPrefix ($ name );
80
80
81
- /**
82
- * Before MySQL 5.7.5, only a single simultaneous lock per connection can be acquired.
83
- * This limitation can be removed once MySQL minimum requirement has been raised,
84
- * currently we support MySQL 5.6 way only.
85
- */
86
- if ($ this ->currentLock ) {
87
- throw new AlreadyExistsException (
88
- new Phrase (
89
- 'Current connection is already holding lock for %1, only single lock allowed ' ,
90
- [$ this ->currentLock ]
91
- )
92
- );
93
- }
94
-
95
81
$ result = (bool )$ this ->resource ->getConnection ()->query (
96
82
"SELECT GET_LOCK(?, ?); " ,
97
83
[$ name , $ timeout < 0 ? self ::MAX_LOCK_TIME : $ timeout ]
You can’t perform that action at this time.
0 commit comments