summaryrefslogtreecommitdiff
path: root/controller/PostgreSQL.hpp
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2020-05-13 17:23:27 -0700
committerGrant Limberg <[email protected]>2020-05-19 17:47:02 -0700
commitb637ced1ee4c87baf544741011b7e1769a6f128c (patch)
treed15a3aec7c29dde22490a0fe4ddafe889c290779 /controller/PostgreSQL.hpp
parentee91c8179900f4b74cdba1ecad9fc318c6a8e945 (diff)
Track member status in Redis
Diffstat (limited to 'controller/PostgreSQL.hpp')
-rw-r--r--controller/PostgreSQL.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/controller/PostgreSQL.hpp b/controller/PostgreSQL.hpp
index 44347cd8..f6167013 100644
--- a/controller/PostgreSQL.hpp
+++ b/controller/PostgreSQL.hpp
@@ -70,6 +70,10 @@ private:
void commitThread();
void onlineNotificationThread();
+ void onlineNotification_Postgres();
+ void onlineNotification_Redis();
+ void _doRedisUpdate(sw::redis::Transaction &tx, std::string &controllerId,
+ std::unordered_map< std::pair<uint64_t,uint64_t>,std::pair<int64_t,InetAddress>,_PairHasher > &lastOnline);
enum OverrideMode {
ALLOW_PGBOUNCER_OVERRIDE = 0,