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
d8f8b666
Commit
d8f8b666
authored
Nov 01, 2009
by
antirez
Browse files
now Redis prints DB stats just after the startup without to wait a second for the first report
parent
33ed1a42
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
d8f8b666
...
...
@@ -1101,7 +1101,7 @@ static void initServer() {
server
.
stat_numcommands
=
0
;
server
.
stat_numconnections
=
0
;
server
.
stat_starttime
=
time
(
NULL
);
aeCreateTimeEvent
(
server
.
el
,
1
000
,
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
);
...
...
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