mirror of
https://github.com/neondatabase/neon.git
synced 2026-08-18 12:08:19 +00:00
2dca4c03fc
With the layer implementation as was done in #4938, it is possible via cancellation to cause two concurrent downloads on the same path, due to how `RemoteTimelineClient::download_remote_layer` does tempfiles. Thread the init semaphore through the spawned task of downloading to make this impossible to happen.