summaryrefslogtreecommitdiff
path: root/controller/PostgreSQL.hpp
diff options
context:
space:
mode:
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;