Do not force sqlite3 storage backend

This commit is contained in:
Jan Kaluza 2012-10-11 10:45:32 +02:00
parent 2b5b1ca860
commit da19668287

View file

@ -10,8 +10,7 @@ namespace Transport {
StorageBackend *StorageBackend::createBackend(Config *config, std::string &error) {
StorageBackend *storageBackend = NULL;
#ifdef WITH_SQLITE
if (CONFIG_STRING(config, "database.type") == "sqlite3" ||
(CONFIG_STRING(config, "database.type") == "none" && !CONFIG_BOOL(config, "service.server_mode"))) {
if (CONFIG_STRING(config, "database.type") == "sqlite3") {
storageBackend = new SQLite3Backend(config);
}
#else