提交 1766c6da 编写于 作者: A antirez

appendfsync parsing in config file fixed. If you benchmarked Redis against...

appendfsync parsing in config file fixed. If you benchmarked Redis against different appendfsync options is time to try again ;)
上级 9387d17d
......@@ -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'";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册