summaryrefslogtreecommitdiff
path: root/server/src/session.cc
diff options
context:
space:
mode:
authordeva <deva>2010-06-21 13:24:53 +0000
committerdeva <deva>2010-06-21 13:24:53 +0000
commitd23cdd88012b230692ba115471855031240db9eb (patch)
tree09cc4da0ba672b62de45c6f54f765ffb01804f06 /server/src/session.cc
parent6e5274045d2fb060d9ee437a254a0eb32036f281 (diff)
Split journal code into modules. Fix bug, when user is changed in the middle of an active session.
Diffstat (limited to 'server/src/session.cc')
-rw-r--r--server/src/session.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/session.cc b/server/src/session.cc
index 31be81b..700f370 100644
--- a/server/src/session.cc
+++ b/server/src/session.cc
@@ -36,6 +36,8 @@
#include <errno.h>
#include "journal.h"
+#include "journal_uploadserver.h"
+
#include "database.h"
#include "configuration.h"
#include "connectionpool.h"
@@ -100,7 +102,8 @@ Journal *Session::journal()
{
if(_journal == NULL) {
_journal =
- new Journal(Conf::journal_commit_addr, Conf::journal_commit_port);
+ new JournalUploadServer(Conf::journal_commit_addr,
+ Conf::journal_commit_port);
}
return _journal;
}