summaryrefslogtreecommitdiff
path: root/server/src/pracrod.cc
diff options
context:
space:
mode:
authordeva <deva>2010-01-06 07:47:58 +0000
committerdeva <deva>2010-01-06 07:47:58 +0000
commit0e819eb42b4d680a99ae7b04702bfc9510495aee (patch)
treea425aeb98c679a0891a974b6f93090343d51a4e8 /server/src/pracrod.cc
parent582913fc18937c87afe7d351e66095dccb435a9e (diff)
New artefact connection class (to later wrap libartefact). New environment class to hold all global resources. Made ConnectionPool a template class. Split journal code up into two files (class from commit code).
Diffstat (limited to 'server/src/pracrod.cc')
-rw-r--r--server/src/pracrod.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/pracrod.cc b/server/src/pracrod.cc
index 6154f06..e15b0f0 100644
--- a/server/src/pracrod.cc
+++ b/server/src/pracrod.cc
@@ -274,6 +274,11 @@ int main(int argc, char *argv[])
Conf::database_backend = database;
}
+ if(Conf::database_backend == "testdb") {
+ // Test db (memory only db) does not work in plural.
+ Conf::database_poolsize = 1;
+ }
+
if(!user) {
user = strdup(Conf::server_user.c_str());
}