diff options
Diffstat (limited to 'src/db/Configured.cxx')
-rw-r--r-- | src/db/Configured.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/db/Configured.cxx b/src/db/Configured.cxx index 3c3eb8632..3e8a6553f 100644 --- a/src/db/Configured.cxx +++ b/src/db/Configured.cxx @@ -38,10 +38,11 @@ CreateConfiguredDatabase(EventLoop &main_event_loop, EventLoop &io_event_loop, throw FormatRuntimeError("Found both 'database' (line %d) and 'db_file' (line %d) setting", param->line, path->line); - if (param != nullptr) + if (param != nullptr) { + param->SetUsed(); return DatabaseGlobalInit(main_event_loop, io_event_loop, listener, *param); - else if (path != nullptr) { + } else if (path != nullptr) { ConfigBlock block(path->line); block.AddBlockParam("path", path->value, path->line); return DatabaseGlobalInit(main_event_loop, io_event_loop, |