Temporary online notification thread hack

Updates both Redis and Postgres
This commit is contained in:
Grant Limberg 2020-05-26 19:00:55 -07:00
parent 2f0f0e4f53
commit 9794e31a64
2 changed files with 60 additions and 24 deletions

View file

@ -70,7 +70,7 @@ private:
void commitThread();
void onlineNotificationThread();
void onlineNotification_Postgres();
void onlineNotification_Postgres(PGconn *conn, std::unordered_map< std::pair<uint64_t,uint64_t>,std::pair<int64_t,InetAddress>,_PairHasher > &lastOnline);
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);