JJ c47644ea46
[Instances] Honor reserved instances (#3563)
* [Instances] Honor reserved instances

Logic to select next available instance id was incorrect.
The correct logic selected the max id + 1 or max reserved + 1, but then it would overwrite if we enabled recycling ids.
Additionally, it was incrementing the reserved ids and assigning ids to the max reserved id vice the next available.
Finally, it was running the logic twice.

* Fix updated SQL to use fmt
2023-08-20 19:21:51 -05:00
..
2023-04-05 12:16:25 -04:00
2016-05-30 06:52:25 -04:00
2018-04-27 21:41:52 -04:00
2018-04-27 21:41:52 -04:00
2016-05-25 02:38:06 -04:00
2020-01-16 17:17:31 -05:00
2020-05-09 14:40:33 -05:00
2021-07-16 21:50:46 -04:00
2014-12-15 22:42:59 -06:00
2019-04-16 01:09:25 -07:00
2019-04-16 01:09:25 -07:00
2019-09-01 23:54:24 -05:00
2016-10-16 21:36:39 -04:00
2019-09-01 23:41:26 -05:00
2018-07-14 17:41:42 -04:00
2023-08-05 13:58:51 -05:00