From d35bafeec39b6688a8dd07c51ea304e348b10fa2 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 7 Aug 2009 11:27:18 +0000 Subject: Added new testdb, that can be activated through the cli (-d testdb) or through the config file (database_backend = testdb) . --- server/src/configurationparser.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/src/configurationparser.cc') diff --git a/server/src/configurationparser.cc b/server/src/configurationparser.cc index a3e7532..8247a45 100644 --- a/server/src/configurationparser.cc +++ b/server/src/configurationparser.cc @@ -104,6 +104,12 @@ void ConfigurationParser::reload() } catch( ... ) { } + try { + std::string a = lookup("database_backend"); + Conf::database_backend = a; + } catch( ... ) { + } + try { std::string a = lookup("database_addr"); Conf::database_addr = a; -- cgit v1.2.3