Skip to content

Commit ab9f7c4

Browse files
authored
[10.x] Use locks for queue job popping for PlanetScale's MySQL-compatible Vitess 19 engine (#49561)
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 89f78ca commit ab9f7c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Illuminate/Queue/DatabaseQueue.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,8 @@ protected function getLockForPopping()
268268

269269
if (($databaseEngine === 'mysql' && version_compare($databaseVersion, '8.0.1', '>=')) ||
270270
($databaseEngine === 'mariadb' && version_compare($databaseVersion, '10.6.0', '>=')) ||
271-
($databaseEngine === 'pgsql' && version_compare($databaseVersion, '9.5', '>='))) {
271+
($databaseEngine === 'pgsql' && version_compare($databaseVersion, '9.5', '>=')) ||
272+
($databaseEngine === 'vitess' && version_compare($databaseVersion, '19.0', '>='))) {
272273
return 'FOR UPDATE SKIP LOCKED';
273274
}
274275

0 commit comments

Comments
 (0)