Merge branch '5.0' of github.com:/antirez/redis into 5.0

This commit is contained in:
antirez 2019-03-01 17:46:21 +01:00
commit 76419d8d5b

View File

@ -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);