Files
ubicloud/model/vm_pool.rb
Burak Velioglu ee586fc6cb Lock only the selected row instead of whole pool
While allocating a vm from a pool, whole vms of the
related pool were locked. This was causing unnecessary
lock and increasing the run time of the query. So, locking
the selected row instead to allow concurrent requests to
continue with the next unlocked tuple.
2024-12-20 11:18:51 +03:00

1.1 KiB