Selaa lähdekoodia

HPCC-14449 Redis Plugin - fix upmerge issue from HPCC-14418

Signed-off-by: James Noss <james.noss@lexisnexis.com>
James Noss 9 vuotta sitten
vanhempi
commit
8bdfe39469
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      plugins/redis/redis.cpp

+ 1 - 1
plugins/redis/redis.cpp

@@ -379,7 +379,7 @@ Connection * Connection::createConnection(ICodeContext * ctx,  Connection * & _c
     if (_cachedConnection->isSameConnection(ctx, options, password))
     if (_cachedConnection->isSameConnection(ctx, options, password))
     {
     {
         //MORE: should perhaps check that the connection has not expired (think hiredis REDIS_KEEPALIVE_INTERVAL is defaulted to 15s).
         //MORE: should perhaps check that the connection has not expired (think hiredis REDIS_KEEPALIVE_INTERVAL is defaulted to 15s).
-        cachedConnection->updateTimeout(_timeout);
+        _cachedConnection->reset(ctx, password, _timeout);
         _cachedConnection->selectDB(ctx, _database);
         _cachedConnection->selectDB(ctx, _database);
         return LINK(_cachedConnection);
         return LINK(_cachedConnection);
     }
     }