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
4f948300
"vscode:/vscode.git/clone" did not exist on "846127fe26e37f5abe3b2ba5812d196284c6740d"
Commit
4f948300
authored
Jun 10, 2011
by
antirez
Browse files
Fixed bug in AOF rewrite not working because of integer overflow
parent
73b9e8ae
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis.c
View file @
4f948300
...
...
@@ -697,9 +697,9 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
{
int
base
=
server
.
auto_aofrewrite_base_size
?
server
.
auto_aofrewrite_base_size
:
1
;
int
growth
=
(
server
.
appendonly_current_size
*
100
/
base
);
long
long
growth
=
(
server
.
appendonly_current_size
*
100
/
base
);
if
(
growth
>=
server
.
auto_aofrewrite_perc
)
{
redisLog
(
REDIS_NOTICE
,
"Starting automatic rewriting of AOF on %d growth"
,
growth
);
redisLog
(
REDIS_NOTICE
,
"Starting automatic rewriting of AOF on %
ll
d growth"
,
growth
);
rewriteAppendOnlyFileBackground
();
}
}
...
...
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