Преглед изворни кода

fix connection to redis cluster in online notification thread

Grant Limberg пре 5 година
родитељ
комит
c2409ad6c9
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      controller/PostgreSQL.cpp

+ 1 - 2
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);