mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
Reserve some disk space for the garbage collector
We can't open a SQLite database if the disk is full. Since this prevents the garbage collector from running when it's most needed, we reserve some dummy space that we can free just before doing a garbage collection. This actually revives some old code from the Berkeley DB days. Fixes #27.
This commit is contained in:
parent
2c26985835
commit
4bc4da331a
9 changed files with 35 additions and 11 deletions
|
@ -327,7 +327,7 @@ extern boost::shared_ptr<StoreAPI> store;
|
|||
|
||||
/* Factory method: open the Nix database, either through the local or
|
||||
remote implementation. */
|
||||
boost::shared_ptr<StoreAPI> openStore();
|
||||
boost::shared_ptr<StoreAPI> openStore(bool reserveSpace = true);
|
||||
|
||||
|
||||
/* Display a set of paths in human-readable form (i.e., between quotes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue