aboutsummaryrefslogtreecommitdiff
path: root/src/nix-worker/nix-worker.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-02-26 12:05:01 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-02-26 12:05:01 +0000
commit24035b98b155dd2d35414bdf015b3d7ab9a57af7 (patch)
tree435c165e44b41d6c6ebc58aac8499bffe2f10c62 /src/nix-worker/nix-worker.cc
parente42401ee7b0c0b166677595d4fd1255176ba33c2 (diff)
* Implement RemoteStore::queryValidPaths().
Diffstat (limited to 'src/nix-worker/nix-worker.cc')
-rw-r--r--src/nix-worker/nix-worker.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc
index 59ab48776..a41fb2e15 100644
--- a/src/nix-worker/nix-worker.cc
+++ b/src/nix-worker/nix-worker.cc
@@ -520,6 +520,14 @@ static void performOp(unsigned int clientVersion,
break;
}
+ case wopQueryValidPaths: {
+ startWork();
+ PathSet paths = store->queryValidPaths();
+ stopWork();
+ writeStringSet(paths, to);
+ break;
+ }
+
default:
throw Error(format("invalid operation %1%") % op);
}