projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73b9e8a
)
Fixed bug in AOF rewrite not working because of integer overflow
author
antirez
<antirez@gmail.com>
Fri, 10 Jun 2011 12:47:12 +0000
(14:47 +0200)
committer
antirez
<antirez@gmail.com>
Fri, 10 Jun 2011 12:47:12 +0000
(14:47 +0200)
src/redis.c
patch
|
blob
|
blame
|
history
diff --git
a/src/redis.c
b/src/redis.c
index 263172259f5e9befb61acfaf4ec33fa0ba1338bd..dbc800fd4d9c2cd15a02e342ba2e1f1259f7b70d 100644
(file)
--- a/
src/redis.c
+++ b/
src/redis.c
@@
-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();
}
}