aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-04-13 10:38:35 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-04-14 08:29:06 -0400
commita6f85e052c916f1589414be1a8ba999aff993296 (patch)
tree6f71b11396861ecc2ebd2d89afa3bb04f6340849 /src/libstore/store-api.hh
parentf5ab38a688031ada1ea52203911e313acdb52e08 (diff)
Support `repairPath` on most stores.
More progress on issue #5729 The method trivially generalizes to be store-implementation-agnostic, in fact. However, we force it to continue to be unimplemented with `RemoteStore` and `LegacySSHStore` because the implementation we'd get via the generalization is probably not the one users expect. This keeps our hands untied to do it right going forward. For more about the tension between the scheduler logic being store-type-agnostic and remote stores doing their own scheduling, see issues #5025 and #5056.
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r--src/libstore/store-api.hh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index 5bee272bf..30c821c58 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -684,8 +684,7 @@ public:
* Repair the contents of the given path by redownloading it using
* a substituter (if available).
*/
- virtual void repairPath(const StorePath & path)
- { unsupported("repairPath"); }
+ virtual void repairPath(const StorePath & path);
/**
* Add signatures to the specified store path. The signatures are