[spanner] Switch collection cache's lock to async #905
Labels
3
Estimate - m - This is a small change, but there's some uncertainty.
enhancement
New feature or request
The underlying thread safety of the
CollectionCache
is provided via a pair ofstd::sync::RwLock
s which is not ideal now that we're async throughout the app.The cache is generally only providing very cheap read calls, but w/ the
/info/collections
endpoint being a very common operation, let's switch it to tokio's async friendlyRwLock
in case a batch of writes blocks the executor (and or causes readers to block).The text was updated successfully, but these errors were encountered: