diff options
| author | Grant Limberg <[email protected]> | 2020-05-13 17:23:27 -0700 |
|---|---|---|
| committer | Grant Limberg <[email protected]> | 2020-05-19 17:47:02 -0700 |
| commit | b637ced1ee4c87baf544741011b7e1769a6f128c (patch) | |
| tree | d15a3aec7c29dde22490a0fe4ddafe889c290779 /controller/PostgreSQL.hpp | |
| parent | ee91c8179900f4b74cdba1ecad9fc318c6a8e945 (diff) | |
Track member status in Redis
Diffstat (limited to 'controller/PostgreSQL.hpp')
| -rw-r--r-- | controller/PostgreSQL.hpp | 4 |
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, |
