From 85b8675e7a11a81bda4b4328e19e433768048911 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 19 Feb 2014 23:17:21 +0100 Subject: db/Interface: add attribute "plugin" The new method IsPlugin() replaces the "is_simple" flag. --- src/Main.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Main.cxx') diff --git a/src/Main.cxx b/src/Main.cxx index e52b40d58..8fe90fc6f 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -166,11 +166,10 @@ InitStorage(Error &error) static bool glue_db_init_and_load(void) { - bool is_simple; Error error; instance->database = CreateConfiguredDatabase(*instance->event_loop, *instance, - is_simple, error); + error); if (instance->database == nullptr) { if (error.IsDefined()) FatalError(error); @@ -193,7 +192,7 @@ glue_db_init_and_load(void) if (!instance->database->Open(error)) FatalError(error); - if (!is_simple) + if (!instance->database->IsPlugin(simple_db_plugin)) return true; SimpleDatabase &db = *(SimpleDatabase *)instance->database; -- cgit v1.2.3