mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 09:41:21 +00:00
AOF check utility: ability to check files with RDB preamble.
This commit is contained in:
@ -3711,11 +3711,13 @@ int main(int argc, char **argv) {
|
||||
initSentinel();
|
||||
}
|
||||
|
||||
/* Check if we need to start in redis-check-rdb mode. We just execute
|
||||
/* Check if we need to start in redis-check-rdb/aof mode. We just execute
|
||||
* the program main. However the program is part of the Redis executable
|
||||
* so that we can easily execute an RDB check on loading errors. */
|
||||
if (strstr(argv[0],"redis-check-rdb") != NULL)
|
||||
redis_check_rdb_main(argc,argv);
|
||||
redis_check_rdb_main(argc,argv,NULL);
|
||||
else if (strstr(argv[0],"redis-check-aof") != NULL)
|
||||
redis_check_aof_main(argc,argv);
|
||||
|
||||
if (argc >= 2) {
|
||||
j = 1; /* First option to parse in argv[] */
|
||||
|
Reference in New Issue
Block a user