Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Commit 2a2e32f

Browse files
committed
redisversioning: add flag to override redis cache incompatibility
1 parent 311de87 commit 2a2e32f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/KVStore/KVStore.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ using namespace souper;
2424

2525
static cl::opt<unsigned> RedisPort("souper-redis-port", cl::init(6379),
2626
cl::desc("Redis server port (default=6379)"));
27+
static cl::opt<bool> IgnoreRedisIncompat("souper-ignore-redis-incompat", cl::init(false),
28+
cl::desc("Ignore redis cache incompatibility (default=false)"));
2729

2830
namespace souper {
2931

@@ -54,7 +56,7 @@ KVStore::KVImpl::KVImpl() {
5456
Ctx->errstr + "\n");
5557
}
5658

57-
if (!checkCompatibility()) {
59+
if (!IgnoreRedisIncompat && !checkCompatibility()) {
5860
llvm::report_fatal_error("Redis database on port %d is incompatible.", RedisPort);
5961
}
6062
}

0 commit comments

Comments
 (0)