diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-02-26 12:05:01 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-02-26 12:05:01 +0000 |
commit | 24035b98b155dd2d35414bdf015b3d7ab9a57af7 (patch) | |
tree | 435c165e44b41d6c6ebc58aac8499bffe2f10c62 /src/libstore | |
parent | e42401ee7b0c0b166677595d4fd1255176ba33c2 (diff) |
* Implement RemoteStore::queryValidPaths().
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/remote-store.cc | 4 | ||||
-rw-r--r-- | src/libstore/worker-protocol.hh | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc index b438c074f..c5d7975b5 100644 --- a/src/libstore/remote-store.cc +++ b/src/libstore/remote-store.cc @@ -214,7 +214,9 @@ bool RemoteStore::isValidPath(const Path & path) PathSet RemoteStore::queryValidPaths() { openConnection(); - throw Error("not implemented"); + writeInt(wopQueryValidPaths, to); + processStderr(); + return readStorePaths(from); } diff --git a/src/libstore/worker-protocol.hh b/src/libstore/worker-protocol.hh index 9e36aab0f..c3096010b 100644 --- a/src/libstore/worker-protocol.hh +++ b/src/libstore/worker-protocol.hh @@ -35,6 +35,7 @@ typedef enum { wopCollectGarbage = 20, wopQuerySubstitutablePathInfo = 21, wopQueryDerivationOutputs = 22, + wopQueryValidPaths = 23, } WorkerOp; |