mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-23 08:00:37 +00:00
If tenant detach is requested while the tenant is still in Attaching state, we set the state to Paused, but when the attach completed, it changed it to Active again, and worse, it started the background jobs. To fix, rewrite the set_state() function so that when you activate a tenant that is already in Paused state, it stays in Paused state and we don't start the background loops.