1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 23:42:43 +01:00

Add an 'optimiseStore' remote procedure call.

This commit is contained in:
Ludovic Courtès 2014-09-01 22:21:42 +02:00 committed by Eelco Dolstra
parent 27a01d92c2
commit 8fb8c26b6d
8 changed files with 42 additions and 20 deletions

View file

@ -579,6 +579,13 @@ void RemoteStore::clearFailedPaths(const PathSet & paths)
readInt(from);
}
void RemoteStore::optimiseStore()
{
openConnection();
writeInt(wopOptimiseStore, to);
processStderr();
readInt(from);
}
void RemoteStore::processStderr(Sink * sink, Source * source)
{