]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Authenticate with Redis before database selection (#1020)
author6d5CfLQ3dYAb <6d5CfLQ3dYAb@users.noreply.github.com>
Wed, 23 Mar 2022 20:07:50 +0000 (13:07 -0700)
committerGitHub <noreply@github.com>
Wed, 23 Mar 2022 20:07:50 +0000 (21:07 +0100)
src/storage/secondary/RedisStorage.cpp

index c08fc06e0bb6cce34e74bc920c8f342ceac4a868..2a5922fbae98c2c79ae1ff4f2dad00a1d0c1e892 100644 (file)
@@ -127,8 +127,8 @@ RedisStorageBackend::RedisStorageBackend(const Params& params)
   }
 
   connect(url, connect_timeout.count(), operation_timeout.count());
-  select_database(url);
   authenticate(url);
+  select_database(url);
 }
 
 inline bool