AOF check utility: ability to check files with RDB preamble.

This commit is contained in:
antirez
2017-07-10 13:38:23 +02:00
parent 6b0670daad
commit fc7ecd8d35
6 changed files with 61 additions and 35 deletions

View File

@ -61,7 +61,7 @@ void rdbCheckThenExit(int linenum, char *reason, ...) {
if (!rdbCheckMode) {
serverLog(LL_WARNING, "%s", msg);
char *argv[2] = {"",server.rdb_filename};
redis_check_rdb_main(2,argv);
redis_check_rdb_main(2,argv,NULL);
} else {
rdbCheckError("%s",msg);
}