1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 17:51:15 +02: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

@ -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);
}