Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

show GCC version in INFO output.

  • Loading branch information...
commit 3b67a0f905c908e5e1b3ee9e96d5a3996da1ca4d 1 parent 2c2b615
@antirez authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/redis.c
View
6 src/redis.c
@@ -1255,6 +1255,7 @@ sds genRedisInfoString(void) {
"redis_git_dirty:%d\r\n"
"arch_bits:%s\r\n"
"multiplexing_api:%s\r\n"
+ "gcc_version:%d.%d.%d\r\n"
"process_id:%ld\r\n"
"uptime_in_seconds:%ld\r\n"
"uptime_in_days:%ld\r\n"
@@ -1297,6 +1298,11 @@ sds genRedisInfoString(void) {
strtol(redisGitDirty(),NULL,10) > 0,
(sizeof(long) == 8) ? "64" : "32",
aeGetApiName(),
+#ifdef __GNUC__
+ __GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__,
+#else
+ 0,0,0,
+#endif
(long) getpid(),
uptime,
uptime/(3600*24),
Please sign in to comment.
Something went wrong with that request. Please try again.