diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-02T16·41+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-02T16·41+0000 |
commit | e25fad691aa3ccb492c4fb8840289f76151e553e (patch) | |
tree | 1610455ac3d4d1d0b992f56e10825cf91e1445e5 /src/libstore/gc.hh | |
parent | 30bf547f4f5bc881eb60c9e11020d077fbb8b899 (diff) |
* Move addTempRoot() to the store API, and add another function
syncWithGC() to allow clients to register GC roots without needing write access to the global roots directory or the GC lock.
Diffstat (limited to 'src/libstore/gc.hh')
-rw-r--r-- | src/libstore/gc.hh | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libstore/gc.hh b/src/libstore/gc.hh index 3f7242884b59..d4f40afa2ac1 100644 --- a/src/libstore/gc.hh +++ b/src/libstore/gc.hh @@ -26,12 +26,6 @@ typedef enum { void collectGarbage(GCAction action, const PathSet & pathsToDelete, bool ignoreLiveness, PathSet & result, unsigned long long & bytesFreed); -/* Register a temporary GC root. This root will automatically - disappear when this process exits. WARNING: this function should - not be called inside a BDB transaction, otherwise we can - deadlock. */ -void addTempRoot(const Path & path); - /* Remove the temporary roots file for this process. Any temporary root becomes garbage after this point unless it has been registered as a (permanent) root. */ |