Track member status in Redis

This commit is contained in:
Grant Limberg 2020-05-13 17:23:27 -07:00
parent ee91c81799
commit b637ced1ee
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
2 changed files with 123 additions and 17 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,