db/Interface: add attribute "plugin"

The new method IsPlugin() replaces the "is_simple" flag.
This commit is contained in:
Max Kellermann
2014-02-19 23:17:21 +01:00
parent ae594ad92c
commit 85b8675e7a
12 changed files with 34 additions and 16 deletions

View File

@@ -28,7 +28,7 @@
Database *
CreateConfiguredDatabase(EventLoop &loop, DatabaseListener &listener,
bool &is_simple_r, Error &error)
Error &error)
{
const struct config_param *param = config_get_param(CONF_DATABASE);
const struct config_param *path = config_get_param(CONF_DB_FILE);
@@ -53,7 +53,7 @@ CreateConfiguredDatabase(EventLoop &loop, DatabaseListener &listener,
return nullptr;
Database *db = DatabaseGlobalInit(loop, listener, *param,
is_simple_r, error);
error);
delete allocated;
return db;
}