mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Merge pull request #6308 from oranagra/repl-diskless-load-config
fix error handling on config parsing of repl-diskless-load
This commit is contained in:
commit
c326f28833
@ -438,6 +438,7 @@ void loadServerConfigFromString(char *config) {
|
||||
server.repl_diskless_load = configEnumGetValue(repl_diskless_load_enum,argv[1]);
|
||||
if (server.repl_diskless_load == INT_MIN) {
|
||||
err = "argument must be 'disabled', 'on-empty-db', 'swapdb' or 'flushdb'";
|
||||
goto loaderr;
|
||||
}
|
||||
} else if (!strcasecmp(argv[0],"repl-diskless-sync-delay") && argc==2) {
|
||||
server.repl_diskless_sync_delay = atoi(argv[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user