mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 18:56:24 +00:00
fix connection to redis cluster in online notification thread
This commit is contained in:
parent
08cb72bdba
commit
c2409ad6c9
@ -1666,8 +1666,7 @@ void PostgreSQL::onlineNotification_Redis()
|
||||
try {
|
||||
if (!lastOnline.empty()) {
|
||||
if (_rc->clusterMode) {
|
||||
auto redis = _cluster->redis(controllerId);
|
||||
auto tx = redis.transaction(true);
|
||||
auto tx = _cluster->transaction(controllerId, true);
|
||||
_doRedisUpdate(tx, controllerId, lastOnline);
|
||||
} else {
|
||||
auto tx = _redis->transaction(true);
|
||||
|
Loading…
Reference in New Issue
Block a user