summaryrefslogtreecommitdiff
path: root/controller/PostgreSQL.hpp
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2018-12-06 13:08:31 -0800
committerGrant Limberg <[email protected]>2018-12-06 13:08:31 -0800
commit1c86f25fab57f4c2bc3f314683a911959f90b9b8 (patch)
tree5f7551df0131c1ff3b28ecf5a0f3118ddb030b1e /controller/PostgreSQL.hpp
parent5535cad773b69cb9359185deead1a3d5ec7bad8a (diff)
update # of threads for Postgres
Diffstat (limited to 'controller/PostgreSQL.hpp')
-rw-r--r--controller/PostgreSQL.hpp4
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;