Main: use DatabasePlugin::RequireStorage()

This commit is contained in:
Max Kellermann 2018-11-19 19:39:37 +01:00
parent bda77ffc5b
commit 12f4a8255a

View File

@ -192,7 +192,7 @@ glue_db_init_and_load(const ConfigData &config)
if (instance->database == nullptr) if (instance->database == nullptr)
return true; return true;
if (instance->database->GetPlugin().flags & DatabasePlugin::FLAG_REQUIRE_STORAGE) { if (instance->database->GetPlugin().RequireStorage()) {
InitStorage(config, instance->io_thread.GetEventLoop()); InitStorage(config, instance->io_thread.GetEventLoop());
if (instance->storage == nullptr) { if (instance->storage == nullptr) {