mirror of
https://github.com/fluencelabs/redis
synced 2025-06-21 21:11:33 +00:00
make append only filename configurable
This commit is contained in:
3
redis.c
3
redis.c
@ -1886,6 +1886,9 @@ static void loadServerConfig(char *filename) {
|
||||
if ((server.appendonly = yesnotoi(argv[1])) == -1) {
|
||||
err = "argument must be 'yes' or 'no'"; goto loaderr;
|
||||
}
|
||||
} else if (!strcasecmp(argv[0],"appendfilename") && argc == 2) {
|
||||
zfree(server.appendfilename);
|
||||
server.appendfilename = zstrdup(argv[1]);
|
||||
} else if (!strcasecmp(argv[0],"appendfsync") && argc == 2) {
|
||||
if (!strcasecmp(argv[1],"no")) {
|
||||
server.appendfsync = APPENDFSYNC_NO;
|
||||
|
Reference in New Issue
Block a user