Loading
Commits on Source 2
-
Josh Bleecher Snyder authored
The previous code was subject to a TOCTOU race: the atomic.AddInt32 in the select statement could succeed, but then context switch away before actually calling c.interrupt. The actual call to c.interrupt could end up occurring later, interrupting an unrelated subsequent query. Fixes #241