fix connection to redis cluster in online notification thread

This commit is contained in:
Grant Limberg 2020-05-21 09:49:41 -07:00
parent 08cb72bdba
commit c2409ad6c9
No known key found for this signature in database
GPG Key ID: 2BA62CCABBB4095A

View File

@ -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);