mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-07 13:32:57 +00:00
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.