dataprovider: remove transaction for quota update

The update is atomic so no transaction is needed.
Addionally a transaction will ask for a new connection to the pool
and this can deadlock if the pool has a max connection limit too low.

Also make configurable the pool size instead of hard code to the cpu number.

Fixes #47
This commit is contained in:
Nicola Murino
2019-09-13 08:14:07 +02:00
parent bf00ca334d
commit e7eb3476b7
6 changed files with 13 additions and 41 deletions

View File

@@ -73,6 +73,7 @@ func init() {
ManageUsers: 1,
SSLMode: 0,
TrackQuota: 1,
PoolSize: 0,
},
HTTPDConfig: api.HTTPDConf{
BindPort: 8080,