ability to specify a different file name for the DB

This commit is contained in:
antirez
2009-04-27 18:10:00 +02:00
parent 85dd2f3ad2
commit b8b553c84f
4 changed files with 11 additions and 2 deletions

View File

@ -1001,6 +1001,8 @@ static void loadServerConfig(char *filename) {
server.requirepass = zstrdup(argv[1]);
} else if (!strcmp(argv[0],"pidfile") && argc == 2) {
server.pidfile = zstrdup(argv[1]);
} else if (!strcmp(argv[0],"dbfilename") && argc == 2) {
server.dbfilename = zstrdup(argv[1]);
} else {
err = "Bad directive or wrong number of arguments"; goto loaderr;
}