mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
Rename redisError to serverError (#177)
Part of #144 Signed-off-by: 0del <bany.y0599@gmail.com>
This commit is contained in:
parent
c413834da1
commit
1629e28f86
@ -4246,11 +4246,11 @@ void incrementErrorCount(const char *fullerr, size_t namelen) {
|
||||
return;
|
||||
}
|
||||
|
||||
struct redisError *error = zmalloc(sizeof(*error));
|
||||
struct serverError *error = zmalloc(sizeof(*error));
|
||||
error->count = 1;
|
||||
raxInsert(server.errors,(unsigned char*)fullerr,namelen,error,NULL);
|
||||
} else {
|
||||
struct redisError *error = result;
|
||||
struct serverError *error = result;
|
||||
error->count++;
|
||||
}
|
||||
}
|
||||
@ -6071,10 +6071,10 @@ sds genRedisInfoString(dict *section_dict, int all_sections, int everything) {
|
||||
raxIterator ri;
|
||||
raxStart(&ri,server.errors);
|
||||
raxSeek(&ri,"^",NULL,0);
|
||||
struct redisError *e;
|
||||
struct serverError *e;
|
||||
while(raxNext(&ri)) {
|
||||
char *tmpsafe;
|
||||
e = (struct redisError *) ri.data;
|
||||
e = (struct serverError *) ri.data;
|
||||
info = sdscatprintf(info,
|
||||
"errorstat_%.*s:count=%lld\r\n",
|
||||
(int)ri.key_len, getSafeInfoString((char *) ri.key, ri.key_len, &tmpsafe), e->count);
|
||||
|
@ -2386,7 +2386,7 @@ struct serverCommand {
|
||||
struct RedisModuleCommand *module_cmd; /* A pointer to the module command data (NULL if native command) */
|
||||
};
|
||||
|
||||
struct redisError {
|
||||
struct serverError {
|
||||
long long count;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user