From 8fb8c26b6d07d2aadf9cf85bda159c815996be89 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 1 Sep 2014 22:21:42 +0200 Subject: Add an 'optimiseStore' remote procedure call. --- src/nix-daemon/nix-daemon.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/nix-daemon') diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc index ced356c34a3d..0f3235d76df8 100644 --- a/src/nix-daemon/nix-daemon.cc +++ b/src/nix-daemon/nix-daemon.cc @@ -508,6 +508,13 @@ static void performOp(bool trusted, unsigned int clientVersion, break; } + case wopOptimiseStore: + startWork(); + store->optimiseStore(); + stopWork(); + writeInt(1, to); + break; + default: throw Error(format("invalid operation %1%") % op); } -- cgit 1.4.1