mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
fix corrupt_rdb.c bug.Let the name of input rdb file name be valid.
This commit is contained in:
parent
b19e8b9a2c
commit
ab1e87f5b1
@ -21,8 +21,9 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
srand(time(NULL));
|
||||
char *filename = argv[1];
|
||||
cycles = atoi(argv[2]);
|
||||
fd = open("dump.rdb",O_RDWR);
|
||||
fd = open(filename,O_RDWR);
|
||||
if (fd == -1) {
|
||||
perror("open");
|
||||
exit(1);
|
||||
|
Loading…
Reference in New Issue
Block a user