Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
55a8298f
"vscode:/vscode.git/clone" did not exist on "2677c97d397b4c3fead2510b9487ea9d68a63841"
Commit
55a8298f
authored
Mar 14, 2010
by
antirez
Browse files
max zipmap entries and max zipmap value parameters added into INFO output
parent
07efaf74
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
55a8298f
...
@@ -6450,6 +6450,9 @@ static sds genRedisInfoString(void) {
...
@@ -6450,6 +6450,9 @@ static sds genRedisInfoString(void) {
int j;
int j;
char hmem[64];
char hmem[64];
server.hash_max_zipmap_entries = REDIS_HASH_MAX_ZIPMAP_ENTRIES;
server.hash_max_zipmap_value = REDIS_HASH_MAX_ZIPMAP_VALUE;
bytesToHuman(hmem,zmalloc_used_memory());
bytesToHuman(hmem,zmalloc_used_memory());
info = sdscatprintf(sdsempty(),
info = sdscatprintf(sdsempty(),
"redis_version:%s\r\n"
"redis_version:%s\r\n"
...
@@ -6469,6 +6472,8 @@ static sds genRedisInfoString(void) {
...
@@ -6469,6 +6472,8 @@ static sds genRedisInfoString(void) {
"bgrewriteaof_in_progress:%d\r\n"
"bgrewriteaof_in_progress:%d\r\n"
"total_connections_received:%lld\r\n"
"total_connections_received:%lld\r\n"
"total_commands_processed:%lld\r\n"
"total_commands_processed:%lld\r\n"
"hash_max_zipmap_entries:%ld\r\n"
"hash_max_zipmap_value:%ld\r\n"
"vm_enabled:%d\r\n"
"vm_enabled:%d\r\n"
"role:%s\r\n"
"role:%s\r\n"
,REDIS_VERSION,
,REDIS_VERSION,
...
@@ -6488,6 +6493,8 @@ static sds genRedisInfoString(void) {
...
@@ -6488,6 +6493,8 @@ static sds genRedisInfoString(void) {
server.bgrewritechildpid != -1,
server.bgrewritechildpid != -1,
server.stat_numconnections,
server.stat_numconnections,
server.stat_numcommands,
server.stat_numcommands,
server.hash_max_zipmap_entries,
server.hash_max_zipmap_value,
server.vm_enabled != 0,
server.vm_enabled != 0,
server.masterhost == NULL ? "master" : "slave"
server.masterhost == NULL ? "master" : "slave"
);
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment