Ensure leveldb is always used as default backend (#36)

This commit is contained in:
sfan5 2016-10-19 02:20:03 +02:00 committed by Maksim Gamarnik
parent 4782ad207a
commit 7cb75e7299
1 changed files with 2 additions and 2 deletions

View File

@ -2138,8 +2138,8 @@ ServerMap::ServerMap(std::string savedir, IGameDef *gamedef, EmergeManager *emer
Settings conf;
bool succeeded = conf.readConfigFile(conf_path.c_str());
if (!succeeded || !conf.exists("backend")) {
// fall back to sqlite3
conf.set("backend", "sqlite3");
// fall back to leveldb
conf.set("backend", "leveldb");
}
std::string backend = conf.get("backend");
dbase = createDatabase(backend, savedir, conf);