Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
55a8298f
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
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
55a8298f
...
@@ -6449,6 +6449,9 @@ static sds genRedisInfoString(void) {
...
@@ -6449,6 +6449,9 @@ static sds genRedisInfoString(void) {
time_t
uptime
=
time
(
NULL
)
-
server
.
stat_starttime
;
time_t
uptime
=
time
(
NULL
)
-
server
.
stat_starttime
;
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
(),
...
@@ -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