mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
appendfsync parsing in config file fixed. If you benchmarked Redis against different appendfsync options is time to try again ;)
This commit is contained in:
parent
9387d17dfe
commit
1766c6dadc
6
redis.c
6
redis.c
@ -1255,11 +1255,11 @@ static void loadServerConfig(char *filename) {
|
||||
err = "argument must be 'yes' or 'no'"; goto loaderr;
|
||||
}
|
||||
} else if (!strcasecmp(argv[0],"appendfsync") && argc == 2) {
|
||||
if (strcasecmp(argv[1],"no")) {
|
||||
if (!strcasecmp(argv[1],"no")) {
|
||||
server.appendfsync = APPENDFSYNC_NO;
|
||||
} else if (strcasecmp(argv[1],"always")) {
|
||||
} else if (!strcasecmp(argv[1],"always")) {
|
||||
server.appendfsync = APPENDFSYNC_ALWAYS;
|
||||
} else if (strcasecmp(argv[1],"everysec")) {
|
||||
} else if (!strcasecmp(argv[1],"everysec")) {
|
||||
server.appendfsync = APPENDFSYNC_EVERYSEC;
|
||||
} else {
|
||||
err = "argument must be 'no', 'always' or 'everysec'";
|
||||
|
Loading…
x
Reference in New Issue
Block a user