Browse Source

Temp object was being destroyed before connection was used

pull/2/head
Grant Limberg 6 years ago
parent
commit
08cb72bdba
No known key found for this signature in database
GPG Key ID: 2BA62CCABBB4095A
  1. 3
      controller/PostgreSQL.cpp

3
controller/PostgreSQL.cpp

@ -1666,7 +1666,8 @@ void PostgreSQL::onlineNotification_Redis()
try {
if (!lastOnline.empty()) {
if (_rc->clusterMode) {
auto tx = _cluster->redis(controllerId).transaction(true);
auto redis = _cluster->redis(controllerId);
auto tx = redis.transaction(true);
_doRedisUpdate(tx, controllerId, lastOnline);
} else {
auto tx = _redis->transaction(true);

Loading…
Cancel
Save