djmitche/mozpool — pull request #1 by markrcote (2012-11-16 02:53:19+00:00)
Title: Updated schema

I changed the schema (and associated functions) in two ways:

- requests now have updated state variables (state, state_counters, state_timeout)
- new table (device_requests) to pair requests and devices. This allows the allocation of a new device to the same request if the lifeguard checks fail, and we can keep the request objects around as long as the logs.

I didn't see a log-purging function (which I imagine we'll need). I think we can delete old requests when all of their associated logs have expired.

Btw one test is failing in your fork's master branch (testStateChangeConflict). I made sure all the tests relevant to my change pass, but I didn't fix that failure.