From f68264008ca056dfdfc1fe3d4ff3ba15dc84d68c Mon Sep 17 00:00:00 2001 From: artikell <739609084@qq.com> Date: Thu, 25 Apr 2024 06:40:57 +0800 Subject: [PATCH 1/2] Update redis* to valkey* in server.c and module.c Signed-off-by: artikell <739609084@qq.com> --- src/server.c | 2 +- src/tls.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.c b/src/server.c index 3fbbd8cead..0864ec7d4c 100644 --- a/src/server.c +++ b/src/server.c @@ -7052,7 +7052,7 @@ int main(int argc, char **argv) { exit(0); } else { fprintf(stderr,"Please specify the amount of memory to test in megabytes.\n"); - fprintf(stderr,"Example: ./redis-server --test-memory 4096\n\n"); + fprintf(stderr,"Example: ./valkey-server --test-memory 4096\n\n"); exit(1); } } if (strcmp(argv[1], "--check-system") == 0) { diff --git a/src/tls.c b/src/tls.c index ad35ca2c2f..956b4b67c3 100644 --- a/src/tls.c +++ b/src/tls.c @@ -1177,7 +1177,7 @@ int ValkeyModule_OnLoad(void *ctx, ValkeyModuleString **argv, int argc) { /* Connection modules must be part of the same build as the server. */ if (strcmp(REDIS_BUILD_ID_RAW, serverBuildIdRaw())) { - serverLog(LL_NOTICE, "Connection type %s was not built together with the redis-server used.", CONN_TYPE_TLS); + serverLog(LL_NOTICE, "Connection type %s was not built together with the valkey-server used.", CONN_TYPE_TLS); return VALKEYMODULE_ERR; } From 15a8c346d954d275d367fb02d164b46635df36d2 Mon Sep 17 00:00:00 2001 From: artikell <739609084@qq.com> Date: Thu, 25 Apr 2024 06:57:01 +0800 Subject: [PATCH 2/2] Update redis* to valkey* for comment Signed-off-by: artikell <739609084@qq.com> --- src/dict.c | 2 +- src/kvstore.c | 2 +- src/ziplist.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dict.c b/src/dict.c index e3ba5189cd..8a9227629c 100644 --- a/src/dict.c +++ b/src/dict.c @@ -1809,7 +1809,7 @@ dictType BenchmarkDictType = { printf(msg ": %ld items in %lld ms\n", count, elapsed); \ } while(0) -/* ./redis-server test dict [ | --accurate] */ +/* ./valkey-server test dict [ | --accurate] */ int dictTest(int argc, char **argv, int flags) { long j; long long start, elapsed; diff --git a/src/kvstore.c b/src/kvstore.c index b3b166a0aa..2f954157b3 100644 --- a/src/kvstore.c +++ b/src/kvstore.c @@ -903,7 +903,7 @@ char *stringFromInt(int value) { return s; } -/* ./redis-server test kvstore */ +/* ./valkey-server test kvstore */ int kvstoreTest(int argc, char **argv, int flags) { UNUSED(argc); UNUSED(argv); diff --git a/src/ziplist.c b/src/ziplist.c index 677fe44233..413b7a8d25 100644 --- a/src/ziplist.c +++ b/src/ziplist.c @@ -1845,7 +1845,7 @@ static size_t strEntryBytesLarge(size_t slen) { return slen + zipStorePrevEntryLength(NULL, ZIP_BIG_PREVLEN) + zipStoreEntryEncoding(NULL, 0, slen); } -/* ./redis-server test ziplist */ +/* ./valkey-server test ziplist */ int ziplistTest(int argc, char **argv, int flags) { int accurate = (flags & TEST_ACCURATE); unsigned char *zl, *p;