diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-02-16 13:19:15 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-02-16 13:19:15 +0000 |
commit | 651ab439cf5b0c6ab2044257a30b0d94406d57d3 (patch) | |
tree | fafb731298c3bdf6f7b81a804864ab9e31e37d67 /src/nix-store | |
parent | d6f586d0eaa9344a99248cc4dfb7825972f2a174 (diff) |
* A simple hack to fix NIX-18: the garbage collector cannot run when
the disk is full (because to delete something from the Nix store, we
need a Berkeley DB transaction, which takes up disk space). Under
normal operation, we make sure that there exists a file
/nix/var/nix/db/reserved of 1 MB. When running the garbage
collector, we delete that file before we open the Berkeley DB
environment.
Diffstat (limited to 'src/nix-store')
-rw-r--r-- | src/nix-store/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-store/main.cc b/src/nix-store/main.cc index 88e6720c0..0ee7b0a7e 100644 --- a/src/nix-store/main.cc +++ b/src/nix-store/main.cc @@ -686,7 +686,7 @@ void run(Strings args) if (!op) throw UsageError("no operation specified"); if (op != opDump && op != opRestore) /* !!! hack */ - openDB(); + openDB(op != opGC); op(opFlags, opArgs); } |