Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server/tailsql: swap database handles outside the server lock
The server needs to lock access to the list of handles, but the swap into an existing handle does not depend on server state. Ensure we do the swap outside the server lock so a slow query (which delays the handle swap) does not block the UI while it runs.
- Loading branch information