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