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
5db904bd
Commit
5db904bd
authored
Jan 10, 2012
by
antirez
Browse files
show GCC version in INFO output.
parent
68fe1b9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
5db904bd
...
@@ -1425,6 +1425,7 @@ sds genRedisInfoString(char *section) {
...
@@ -1425,6 +1425,7 @@ sds genRedisInfoString(char *section) {
"redis_git_dirty:%d
\r\n
"
"redis_git_dirty:%d
\r\n
"
"arch_bits:%s
\r\n
"
"arch_bits:%s
\r\n
"
"multiplexing_api:%s
\r\n
"
"multiplexing_api:%s
\r\n
"
"gcc_version:%d.%d.%d
\r\n
"
"process_id:%ld
\r\n
"
"process_id:%ld
\r\n
"
"tcp_port:%d
\r\n
"
"tcp_port:%d
\r\n
"
"uptime_in_seconds:%ld
\r\n
"
"uptime_in_seconds:%ld
\r\n
"
...
@@ -1435,6 +1436,11 @@ sds genRedisInfoString(char *section) {
...
@@ -1435,6 +1436,11 @@ sds genRedisInfoString(char *section) {
strtol
(
redisGitDirty
(),
NULL
,
10
)
>
0
,
strtol
(
redisGitDirty
(),
NULL
,
10
)
>
0
,
(
sizeof
(
long
)
==
8
)
?
"64"
:
"32"
,
(
sizeof
(
long
)
==
8
)
?
"64"
:
"32"
,
aeGetApiName
(),
aeGetApiName
(),
#ifdef __GNUC__
__GNUC__
,
__GNUC_MINOR__
,
__GNUC_PATCHLEVEL__
,
#else
0
,
0
,
0
,
#endif
(
long
)
getpid
(),
(
long
)
getpid
(),
server
.
port
,
server
.
port
,
uptime
,
uptime
,
...
...
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