diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-09-01 22:21:42 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-01 23:53:26 +0200 |
commit | 8fb8c26b6d07d2aadf9cf85bda159c815996be89 (patch) | |
tree | c7aa813a7279895ddc2609cf26ab3faf36043f3a /src/nix-daemon | |
parent | 27a01d92c2be3e6c1be23f96d24c3d3358489a87 (diff) |
Add an 'optimiseStore' remote procedure call.
Diffstat (limited to 'src/nix-daemon')
-rw-r--r-- | src/nix-daemon/nix-daemon.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc index ced356c34..0f3235d76 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); } |