diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-08-21T11·57+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-08-21T11·57+0200 |
commit | eadb86f44726e12988d5f21b47e4c54b49b2092b (patch) | |
tree | 7bc583f1caeba82bf09f660c0367f8d33e9b24f1 /src/libstore/store-api.hh | |
parent | 1d29db2a9f67af8a32b2f901a6da6697c539a50d (diff) |
nix-collect-garbage: Revive --max-freed
Fixes #609.
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index d04a040bb95c..235017503213 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -4,6 +4,7 @@ #include "serialise.hh" #include <string> +#include <limits> #include <map> #include <memory> @@ -36,21 +37,19 @@ struct GCOptions gcDeleteSpecific, } GCAction; - GCAction action; + GCAction action{gcDeleteDead}; /* If `ignoreLiveness' is set, then reachability from the roots is ignored (dangerous!). However, the paths must still be unreferenced *within* the store (i.e., there can be no other store paths that depend on them). */ - bool ignoreLiveness; + bool ignoreLiveness{false}; /* For `gcDeleteSpecific', the paths to delete. */ PathSet pathsToDelete; /* Stop after at least `maxFreed' bytes have been freed. */ - unsigned long long maxFreed; - - GCOptions(); + unsigned long long maxFreed{std::numeric_limits<unsigned long long>::max()}; }; |