Skip to content

Commit

Permalink
[10.x] Use locks for queue job popping for PlanetScale's MySQL-compat…
Browse files Browse the repository at this point in the history
…ible Vitess 19 engine (#49561)

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored Jan 8, 2024
1 parent 89f78ca commit ab9f7c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Illuminate/Queue/DatabaseQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ protected function getLockForPopping()

if (($databaseEngine === 'mysql' && version_compare($databaseVersion, '8.0.1', '>=')) ||
($databaseEngine === 'mariadb' && version_compare($databaseVersion, '10.6.0', '>=')) ||
($databaseEngine === 'pgsql' && version_compare($databaseVersion, '9.5', '>='))) {
($databaseEngine === 'pgsql' && version_compare($databaseVersion, '9.5', '>=')) ||
($databaseEngine === 'vitess' && version_compare($databaseVersion, '19.0', '>='))) {
return 'FOR UPDATE SKIP LOCKED';
}

Expand Down

0 comments on commit ab9f7c4

Please sign in to comment.