diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-03-23 10:06:45 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2023-07-24 09:19:44 -0400 |
commit | 60d8dd7aeaf7fc022a1b207012c94180f6732b45 (patch) | |
tree | d75c4e83665fe7852938852f3d40908aa8d30784 /src/libstore/uds-remote-store.cc | |
parent | 13269ba93b7453def7084b00eb4a34ad787a7c45 (diff) |
Clean up store hierarchy with `IndirectRootStore`
See the API doc comments for details.
Diffstat (limited to 'src/libstore/uds-remote-store.cc')
-rw-r--r-- | src/libstore/uds-remote-store.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstore/uds-remote-store.cc b/src/libstore/uds-remote-store.cc index 69dae2da5..99589f8b2 100644 --- a/src/libstore/uds-remote-store.cc +++ b/src/libstore/uds-remote-store.cc @@ -1,4 +1,5 @@ #include "uds-remote-store.hh" +#include "worker-protocol.hh" #include <sys/types.h> #include <sys/stat.h> @@ -77,6 +78,15 @@ ref<RemoteStore::Connection> UDSRemoteStore::openConnection() } +void UDSRemoteStore::addIndirectRoot(const Path & path) +{ + auto conn(getConnection()); + conn->to << WorkerProto::Op::AddIndirectRoot << path; + conn.processStderr(); + readInt(conn->from); +} + + static RegisterStoreImplementation<UDSRemoteStore, UDSRemoteStoreConfig> regUDSRemoteStore; } |