aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 2f59b3591..ee401d7fc 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -880,16 +880,12 @@ uint64_t LocalStore::addValidPath(State & state,
}
-void LocalStore::queryPathInfoUncached(const StorePath & path,
- Callback<std::shared_ptr<const ValidPathInfo>> callback) noexcept
+std::shared_ptr<const ValidPathInfo> LocalStore::queryPathInfoUncached(const StorePath & path)
{
- try {
- callback(retrySQLite<std::shared_ptr<const ValidPathInfo>>([&]() {
- auto state(_state.lock());
- return queryPathInfoInternal(*state, path);
- }));
-
- } catch (...) { callback.rethrow(); }
+ return retrySQLite<std::shared_ptr<const ValidPathInfo>>([&]() {
+ auto state(_state.lock());
+ return queryPathInfoInternal(*state, path);
+ });
}