aboutsummaryrefslogtreecommitdiff
path: root/src/db.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-10-14 15:33:00 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-10-14 15:33:00 +0000
commitc190f051ac34b2df51402bf593150de97f491d86 (patch)
treeb08f3b05b2f39e1d1c48ce833711516671dc568a /src/db.hh
parent1d61e473c88568fae7ef5edebc77acd53e4126f9 (diff)
* Automatically recover the database in case of a crash.
Diffstat (limited to 'src/db.hh')
-rw-r--r--src/db.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db.hh b/src/db.hh
index 4bac943e5..e3dc7ce7a 100644
--- a/src/db.hh
+++ b/src/db.hh
@@ -45,6 +45,9 @@ class Database
private:
DbEnv * env;
+ int fdLock;
+ int fdAccessors;
+
TableId nextId;
map<TableId, Db *> tables;
@@ -57,6 +60,7 @@ public:
~Database();
void open(const string & path);
+ void close();
TableId openTable(const string & table);