mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
Update redis* to valkey* in server.c and module.c (#367)
it's a supplementary modification from #352. Signed-off-by: artikell <739609084@qq.com>
This commit is contained in:
parent
2864fffe73
commit
74a0486e3d
@ -1809,7 +1809,7 @@ dictType BenchmarkDictType = {
|
|||||||
printf(msg ": %ld items in %lld ms\n", count, elapsed); \
|
printf(msg ": %ld items in %lld ms\n", count, elapsed); \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
/* ./redis-server test dict [<count> | --accurate] */
|
/* ./valkey-server test dict [<count> | --accurate] */
|
||||||
int dictTest(int argc, char **argv, int flags) {
|
int dictTest(int argc, char **argv, int flags) {
|
||||||
long j;
|
long j;
|
||||||
long long start, elapsed;
|
long long start, elapsed;
|
||||||
|
@ -903,7 +903,7 @@ char *stringFromInt(int value) {
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ./redis-server test kvstore */
|
/* ./valkey-server test kvstore */
|
||||||
int kvstoreTest(int argc, char **argv, int flags) {
|
int kvstoreTest(int argc, char **argv, int flags) {
|
||||||
UNUSED(argc);
|
UNUSED(argc);
|
||||||
UNUSED(argv);
|
UNUSED(argv);
|
||||||
|
@ -7052,7 +7052,7 @@ int main(int argc, char **argv) {
|
|||||||
exit(0);
|
exit(0);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr,"Please specify the amount of memory to test in megabytes.\n");
|
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);
|
exit(1);
|
||||||
}
|
}
|
||||||
} if (strcmp(argv[1], "--check-system") == 0) {
|
} if (strcmp(argv[1], "--check-system") == 0) {
|
||||||
|
@ -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. */
|
/* Connection modules must be part of the same build as the server. */
|
||||||
if (strcmp(REDIS_BUILD_ID_RAW, serverBuildIdRaw())) {
|
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;
|
return VALKEYMODULE_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1845,7 +1845,7 @@ static size_t strEntryBytesLarge(size_t slen) {
|
|||||||
return slen + zipStorePrevEntryLength(NULL, ZIP_BIG_PREVLEN) + zipStoreEntryEncoding(NULL, 0, slen);
|
return slen + zipStorePrevEntryLength(NULL, ZIP_BIG_PREVLEN) + zipStoreEntryEncoding(NULL, 0, slen);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ./redis-server test ziplist <randomseed> */
|
/* ./valkey-server test ziplist <randomseed> */
|
||||||
int ziplistTest(int argc, char **argv, int flags) {
|
int ziplistTest(int argc, char **argv, int flags) {
|
||||||
int accurate = (flags & TEST_ACCURATE);
|
int accurate = (flags & TEST_ACCURATE);
|
||||||
unsigned char *zl, *p;
|
unsigned char *zl, *p;
|
||||||
|
Loading…
Reference in New Issue
Block a user