FoundationDB/sql-layer — pull request #1046 by tjoneslo (2013-11-13 22:29:19+00:00)
Title: Msleep not constant

There are two, almost invisible, fixes to the MSleep (Sleep) function here.

* Ensure the sleep function only gets called during the query execute (not optimize) by setting the neverConstant() flag for the function.
* If the sleep in interrupted by a query cancellation, make sure to throw the correct QueryCanceledException so everyone back to the client is happy