From c2409ad6c993bf3222bc115e348fba3078398c7f Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Thu, 21 May 2020 09:49:41 -0700 Subject: [PATCH] fix connection to redis cluster in online notification thread --- controller/PostgreSQL.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index a9915ee11..c3cfe7f04 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -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);