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
9b401819
Commit
9b401819
authored
Mar 05, 2014
by
antirez
Browse files
Cast saveparams[].seconds to long for %ld format specifier.
parent
8d011492
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
9b401819
...
...
@@ -1461,7 +1461,7 @@ void rewriteConfigSaveOption(struct rewriteConfigState *state) {
* resulting into no RDB persistence as expected. */
for
(
j
=
0
;
j
<
server
.
saveparamslen
;
j
++
)
{
line
=
sdscatprintf
(
sdsempty
(),
"save %ld %d"
,
server
.
saveparams
[
j
].
seconds
,
server
.
saveparams
[
j
].
changes
);
(
long
)
server
.
saveparams
[
j
].
seconds
,
server
.
saveparams
[
j
].
changes
);
rewriteConfigRewriteLine
(
state
,
"save"
,
line
,
1
);
}
/* Mark "save" as processed in case server.saveparamslen is zero. */
...
...
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