Skip to content

Commit

Permalink
fix for possible matchup race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
McLeopold committed Dec 21, 2011
1 parent 545bd21 commit 631976a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sql/2_generate_matchup.sql
Expand Up @@ -161,8 +161,7 @@ if @min_players <= @max_players then
from matchup m
inner join matchup_player mp
on mp.matchup_id = m.matchup_id
where m.matchup_timestamp > timestampadd(hour, -24, current_timestamp)
and (m.worker_id >= 0 or m.worker_id is null)
where (m.worker_id >= 0 or m.worker_id is null)
and m.deleted = 0
group by mp.user_id
union
Expand Down

0 comments on commit 631976a

Please sign in to comment.