]> git.saurik.com Git - redis.git/commitdiff
Merge remote-tracking branch 'origin/unstable' into unstable
authorantirez <antirez@gmail.com>
Tue, 9 Aug 2011 09:46:21 +0000 (11:46 +0200)
committerantirez <antirez@gmail.com>
Tue, 9 Aug 2011 09:46:21 +0000 (11:46 +0200)
src/redis.c

index 0bedc25b38c8c6250f882e0fa07e08b9986548a7..6b92018df3e7b3c3cdc4cf5e46fa8a3431fa4dca 100644 (file)
@@ -685,7 +685,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
              server.auto_aofrewrite_perc &&
              server.appendonly_current_size > server.auto_aofrewrite_min_size)
          {
-            int base = server.auto_aofrewrite_base_size ?
+            long long base = server.auto_aofrewrite_base_size ?
                             server.auto_aofrewrite_base_size : 1;
             long long growth = (server.appendonly_current_size*100/base) - 100;
             if (growth >= server.auto_aofrewrite_perc) {