diff options
author | Max Kellermann <max@duempel.org> | 2014-02-17 22:12:33 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-17 22:14:00 +0100 |
commit | 91729437a0c24c5aad8f223f64ee63e918fe8b91 (patch) | |
tree | b68c0e574d60e9395de75ac3761968e6104fc98f /src/db/Configured.cxx | |
parent | 3af7af0b8fe603ab5c45f2cf3d89cb6ca017c40e (diff) | |
download | mpd-91729437a0c24c5aad8f223f64ee63e918fe8b91.tar.gz mpd-91729437a0c24c5aad8f223f64ee63e918fe8b91.tar.xz mpd-91729437a0c24c5aad8f223f64ee63e918fe8b91.zip |
Main: initialize Database before Storage
Diffstat (limited to 'src/db/Configured.cxx')
-rw-r--r-- | src/db/Configured.cxx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/db/Configured.cxx b/src/db/Configured.cxx index a6194dc5c..edd3159f9 100644 --- a/src/db/Configured.cxx +++ b/src/db/Configured.cxx @@ -28,7 +28,7 @@ Database * CreateConfiguredDatabase(EventLoop &loop, DatabaseListener &listener, - bool have_storage, bool &is_simple_r, Error &error) + bool &is_simple_r, Error &error) { const struct config_param *param = config_get_param(CONF_DATABASE); const struct config_param *path = config_get_param(CONF_DB_FILE); @@ -40,18 +40,6 @@ CreateConfiguredDatabase(EventLoop &loop, DatabaseListener &listener, return nullptr; } - if (!have_storage) { - if (param != nullptr) - LogDefault(config_domain, - "Found database setting without " - "music_directory - disabling database"); - if (path != nullptr) - LogDefault(config_domain, - "Found db_file setting without " - "music_directory - disabling database"); - return nullptr; - } - struct config_param *allocated = nullptr; if (param == nullptr && path != nullptr) { |