sql: use semaphore to limit access to the connection pool

This ensures that if multiple connections are returned
to the pool at the same time, waiters get them in the order
they were placed in the queue.
This commit is contained in:
link2xt
2023-02-19 17:04:18 +00:00
parent 609fc67f0d
commit 10066b2bc7
3 changed files with 23 additions and 19 deletions

View File

@@ -12,6 +12,7 @@
- deltachat-rpc-server: do not block stdin while processing the request. #4041
deltachat-rpc-server now reads the next request as soon as previous request handler is spawned.
- enable `auto_vacuum` on all SQL connections #2955
- use semaphore for connection pool #4061
### API-Changes