]> git.saurik.com Git - redis.git/blobdiff - src/config.c
correctly set AOF base size field in server structure
[redis.git] / src / config.c
index 73fd10e435c2843ca96bb5a156cf8e98c0688496..f3e5b169c7ca50bf46d708ad58936b7b5a910bc9 100644 (file)
@@ -234,7 +234,7 @@ void loadServerConfig(char *filename) {
         } else if (!strcasecmp(argv[0],"auto-aof-rewrite-percentage") &&
                    argc == 2)
         {
-            server.auto_aofrewrite_perc = atoi(argv[2]);
+            server.auto_aofrewrite_perc = atoi(argv[1]);
             if (server.auto_aofrewrite_perc < 0) {
                 err = "Invalid negative percentage for AOF auto rewrite";
                 goto loaderr;