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
e93387c1
Unverified
Commit
e93387c1
authored
Nov 06, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Nov 06, 2018
Browse files
Merge pull request #5526 from valentino-redislabs/init-server-hz
fix short period of server.hz being uninitialised
parents
1423abd1
eae8d058
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
e93387c1
...
...
@@ -1529,7 +1529,7 @@ void initServerConfig(void) {
server
.
timezone
=
getTimeZone
();
/* Initialized by tzset(). */
server
.
configfile
=
NULL
;
server
.
executable
=
NULL
;
server
.
config_hz
=
CONFIG_DEFAULT_HZ
;
server
.
hz
=
server
.
config_hz
=
CONFIG_DEFAULT_HZ
;
server
.
dynamic_hz
=
CONFIG_DEFAULT_DYNAMIC_HZ
;
server
.
arch_bits
=
(
sizeof
(
long
)
==
8
)
?
64
:
32
;
server
.
port
=
CONFIG_DEFAULT_SERVER_PORT
;
...
...
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