Skip to content

Commit

Permalink
usrloc: Properly handle bad clutering presets on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Mar 27, 2018
1 parent b28d1d1 commit 018edc3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/usrloc/ul_mod.c
Expand Up @@ -694,6 +694,12 @@ int check_runtime_config(void)
cluster_mode = CM_FULL_SHARING_CACHEDB;
rr_persist = RRP_NONE;
sql_wmode = SQL_NO_WRITE;
} else {
LM_ERR("unrecognized preset: %s, defaulting to "
"'single-instance-no-db'\n", runtime_preset);
cluster_mode = CM_NONE;
rr_persist = RRP_NONE;
sql_wmode = SQL_NO_WRITE;
}
} else {
if (cluster_mode_str) {
Expand Down

0 comments on commit 018edc3

Please sign in to comment.