Commit 0d7170a4 authored by antirez's avatar antirez
Browse files

added process id information in INFO

parent c9e5c23d
...@@ -17,6 +17,7 @@ Virtual Memory sub-TODO: ...@@ -17,6 +17,7 @@ Virtual Memory sub-TODO:
* Divide swappability of objects by refcount * Divide swappability of objects by refcount
* While loading DB from snapshot or AOF, swap objects as needed if maxmemory * While loading DB from snapshot or AOF, swap objects as needed if maxmemory
is reached, calling swapOneObject(). is reached, calling swapOneObject().
* vm-swap-file <filename>. The swap file should go where the user wants, and if it's already there and of the right size we can avoid to create it again.
VERSION 1.6 TODO (Virtual memory) VERSION 1.6 TODO (Virtual memory)
================================= =================================
......
...@@ -5411,6 +5411,7 @@ static sds genRedisInfoString(void) { ...@@ -5411,6 +5411,7 @@ static sds genRedisInfoString(void) {
"redis_version:%s\r\n" "redis_version:%s\r\n"
"arch_bits:%s\r\n" "arch_bits:%s\r\n"
"multiplexing_api:%s\r\n" "multiplexing_api:%s\r\n"
"process_id:%ld\r\n"
"uptime_in_seconds:%ld\r\n" "uptime_in_seconds:%ld\r\n"
"uptime_in_days:%ld\r\n" "uptime_in_days:%ld\r\n"
"connected_clients:%d\r\n" "connected_clients:%d\r\n"
...@@ -5428,6 +5429,7 @@ static sds genRedisInfoString(void) { ...@@ -5428,6 +5429,7 @@ static sds genRedisInfoString(void) {
,REDIS_VERSION, ,REDIS_VERSION,
(sizeof(long) == 8) ? "64" : "32", (sizeof(long) == 8) ? "64" : "32",
aeGetApiName(), aeGetApiName(),
(long) getpid(),
uptime, uptime,
uptime/(3600*24), uptime/(3600*24),
listLength(server.clients)-listLength(server.slaves), listLength(server.clients)-listLength(server.slaves),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment