Homestyx hydra

R1:ac7edf54afe4

Fix bad counting in SQL when enforcing Drydock allocator soft limits

Summary:
Ref T9252. This fixes a bug from D14236. D14272 discusses the observable effects of the bug, primarily that the window for racing is widened from ~a few milliseconds to several minutes under our configuration.

This SQL query is missing a `GROUP BY` clause, so all of the resources get counted as having the same status (specifically, the alphabetically earliest status any resource had, I think). For test cases this often gets the…
Repository: R1 hydra
Commit Date: Oct 14 2015