Track member status in Redis

This commit is contained in:
Grant Limberg 2020-05-13 17:23:27 -07:00
parent 15c0c1db39
commit 701960def5
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
2 changed files with 124 additions and 18 deletions

View file

@ -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,