mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
now Redis prints DB stats just after the startup without to wait a second for the first report
This commit is contained in:
parent
33ed1a426d
commit
d8f8b666f4
2
redis.c
2
redis.c
@ -1101,7 +1101,7 @@ static void initServer() {
|
||||
server.stat_numcommands = 0;
|
||||
server.stat_numconnections = 0;
|
||||
server.stat_starttime = time(NULL);
|
||||
aeCreateTimeEvent(server.el, 1000, serverCron, NULL, NULL);
|
||||
aeCreateTimeEvent(server.el, 1, serverCron, NULL, NULL);
|
||||
|
||||
if (server.appendonly) {
|
||||
server.appendfd = open(server.appendfilename,O_WRONLY|O_APPEND|O_CREAT,0644);
|
||||
|
Loading…
x
Reference in New Issue
Block a user