mirror of
https://github.com/NixOS/nix.git
synced 2025-12-10 02:51:02 +01:00
* Automatically recover the database in case of a crash.
This commit is contained in:
parent
1d61e473c8
commit
c190f051ac
6 changed files with 204 additions and 41 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue