diff options
Diffstat (limited to 'src/libstore/store.cc')
-rw-r--r-- | src/libstore/store.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstore/store.cc b/src/libstore/store.cc index 281ccc4bf147..dc3625a1d5da 100644 --- a/src/libstore/store.cc +++ b/src/libstore/store.cc @@ -746,8 +746,9 @@ Path addTextToStore(const string & suffix, const string & s, } -void deleteFromStore(const Path & _path) +void deleteFromStore(const Path & _path, unsigned long long & bytesFreed) { + bytesFreed = 0; Path path(canonPath(_path)); assertStorePath(path); @@ -763,7 +764,7 @@ void deleteFromStore(const Path & _path) } txn.commit(); - deletePath(path); + deletePath(path, bytesFreed); } |