From b9f607b70d4c4c79fa9a9d6f11e433ba29f6ce5d Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Fri, 13 May 2022 20:46:20 +0200 Subject: [PATCH] fix: Support Redis URL without host --- src/storage/secondary/RedisStorage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storage/secondary/RedisStorage.cpp b/src/storage/secondary/RedisStorage.cpp index a607d229d..32bc4ae39 100644 --- a/src/storage/secondary/RedisStorage.cpp +++ b/src/storage/secondary/RedisStorage.cpp @@ -230,11 +230,11 @@ RedisStorageBackend::connect(const Url& url, ASSERT(url.path().empty() || url.path()[0] == '/'); LOG("Redis connecting to {}:{} (connect timeout {} ms)", - url.host(), + host, port, connect_timeout); - m_context.reset(redisConnectWithTimeout( - url.host().c_str(), port, to_timeval(connect_timeout))); + m_context.reset( + redisConnectWithTimeout(host.c_str(), port, to_timeval(connect_timeout))); if (!m_context) { throw Failed("Redis context construction error"); -- 2.47.2