Skip to content

Commit e9232be

Browse files
committed
Add explicit ORDER BY for safety
1 parent 7d64c80 commit e9232be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osu.Server.QueueProcessor/BeatmapStatusWatcher.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static async Task<BeatmapUpdates> GetUpdatedBeatmapSetsAsync(int? lastQue
5656

5757
if (lastQueueId.HasValue)
5858
{
59-
var items = (await connection.QueryAsync<bss_process_queue_item>("SELECT * FROM bss_process_queue WHERE queue_id > @lastQueueId LIMIT @limit", new
59+
var items = (await connection.QueryAsync<bss_process_queue_item>("SELECT * FROM bss_process_queue WHERE queue_id > @lastQueueId ORDER BY queue_id LIMIT @limit", new
6060
{
6161
lastQueueId,
6262
limit

0 commit comments

Comments
 (0)