mirror of
https://github.com/fluencelabs/redis
synced 2025-06-18 11:41:20 +00:00
ability to specify a different file name for the DB
This commit is contained in:
2
redis.c
2
redis.c
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user