1
0
mirror of https://github.com/fluencelabs/redis synced 2025-06-25 15:01:33 +00:00

Merge pull request from fengweiyuan/5.0

fix corrupt_rdb.c bug.Let the name of input rdb file name be valid.
This commit is contained in:
Salvatore Sanfilippo
2019-03-01 16:57:13 +01:00
committed by GitHub

@ -21,8 +21,9 @@ int main(int argc, char **argv) {
} }
srand(time(NULL)); srand(time(NULL));
char *filename = argv[1];
cycles = atoi(argv[2]); cycles = atoi(argv[2]);
fd = open("dump.rdb",O_RDWR); fd = open(filename,O_RDWR);
if (fd == -1) { if (fd == -1) {
perror("open"); perror("open");
exit(1); exit(1);