Skip to content

Commit

Permalink
Update valkey in log and panic message
Browse files Browse the repository at this point in the history
Signed-off-by: Shivshankar-Reddy <[email protected]>
  • Loading branch information
Shivshankar-Reddy committed May 24, 2024
1 parent d72ba06 commit 58af6dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/cluster_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ int clusterLoadConfig(char *filename) {
} else if (!strcasecmp(s, "noflags")) {
/* nothing to do */
} else {
serverPanic("Unknown flag in redis cluster config file");
serverPanic("Unknown flag in %s cluster config file",
server.extended_redis_compat ? "redis" : "valkey");
}
if (p) s = p + 1;
}
Expand Down
5 changes: 3 additions & 2 deletions src/rdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3020,10 +3020,11 @@ int rdbLoadRioWithLoadingCtx(rio *rdb, int rdbflags, rdbSaveInfo *rsi, rdbLoadin
if ((dbid = rdbLoadLen(rdb, NULL)) == RDB_LENERR) goto eoferr;
if (dbid >= (unsigned)server.dbnum) {
serverLog(LL_WARNING,
"FATAL: Data file was created with a Redis "
"FATAL: Data file was created with a %s "
"server configured to handle more than %d "
"databases. Exiting\n",
server.dbnum);
server.dbnum,
server.extended_redis_compat ? "Redis" : "Valkey");
exit(1);
}
db = rdb_loading_ctx->dbarray + dbid;
Expand Down

0 comments on commit 58af6dd

Please sign in to comment.