mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
This is preliminary work for/from #4220 (async `Layer::get_value_reconstruct_data`). The patch converts `Tenant::timelines` from `std::sync::Mutex` to `tokio::sync::Mutex`. We need this change because we want to switch `Timeline::layers` to an async RwLock. We need that because we hold `Timeline::layers` while calling `Layer::get_value_reconstruct_data`. So, if we want to make get_value_reconstruct_data async, we need to make `Timeline::layers` async first.