diff options
author | deva <deva> | 2010-05-27 09:45:12 +0000 |
---|---|---|
committer | deva <deva> | 2010-05-27 09:45:12 +0000 |
commit | f92dd279a1e26dad7507d5d6944567c23834d440 (patch) | |
tree | 59dbd43d60937c6b3eaa82a36de8859a209e8163 /server/src/session.h | |
parent | 73934812611cc7120175e26761d71fae9233c1e8 (diff) |
A lot of session handling. A lot of new unit tests. Add of a more structured commit/discard handling. Fix of some wierd line break bugs in journalwriter
Diffstat (limited to 'server/src/session.h')
-rw-r--r-- | server/src/session.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/src/session.h b/server/src/session.h index 48c01d7..6c614c7 100644 --- a/server/src/session.h +++ b/server/src/session.h @@ -38,6 +38,7 @@ class JournalWriter; class Session { public: Session(std::string sessionid); + ~Session(); std::string id(); @@ -45,6 +46,7 @@ public: void unlock(); void commit(); + void discard(); JournalWriter *journal(); @@ -86,6 +88,11 @@ public: */ size_t size(); + /** + * Write all active sessions to disc. + */ + void store(); + private: std::map<std::string, Session *> sessions; }; |