diff options
| author | Grant Limberg <[email protected]> | 2018-12-06 13:08:31 -0800 |
|---|---|---|
| committer | Grant Limberg <[email protected]> | 2018-12-06 13:08:31 -0800 |
| commit | 1c86f25fab57f4c2bc3f314683a911959f90b9b8 (patch) | |
| tree | 5f7551df0131c1ff3b28ecf5a0f3118ddb030b1e /controller/PostgreSQL.hpp | |
| parent | 5535cad773b69cb9359185deead1a3d5ec7bad8a (diff) | |
update # of threads for Postgres
Diffstat (limited to 'controller/PostgreSQL.hpp')
| -rw-r--r-- | controller/PostgreSQL.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/controller/PostgreSQL.hpp b/controller/PostgreSQL.hpp index 6f127d5a..a20bfe99 100644 --- a/controller/PostgreSQL.hpp +++ b/controller/PostgreSQL.hpp @@ -23,6 +23,8 @@ #include "DB.hpp" +#define ZT_CENTRAL_CONTROLLER_COMMIT_THREADS 4 + extern "C" { typedef struct pg_conn PGconn; } @@ -79,7 +81,7 @@ private: std::thread _heartbeatThread; std::thread _membersDbWatcher; std::thread _networksDbWatcher; - std::thread _commitThread[ZT_CONTROLLER_RETHINKDB_COMMIT_THREADS]; + std::thread _commitThread[ZT_CENTRAL_CONTROLLER_COMMIT_THREADS]; std::thread _onlineNotificationThread; std::unordered_map< std::pair<uint64_t,uint64_t>,std::pair<int64_t,InetAddress>,_PairHasher > _lastOnline; |
