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:
parent
27a01d92c2
commit
8fb8c26b6d
8 changed files with 42 additions and 20 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue