mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-26 19:35:12 +00:00
Said method catches bad-allocs and retries the passed-in function after raising the reserves. This does nothing to help the function succeed if the bad alloc was throw from the semaphore, because the kill limit was reached. In this case the read should be left to fail and terminate. Now that the semaphore is throwing utils::memory_limit_reached in this case, we can distinguish this case and just re-throw the exception.
18 KiB
18 KiB