diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-09-25 18:54:16 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-10-29 13:53:04 +0100 |
commit | e5319a87ce75bbd2dd88f57c3b470a396195e849 (patch) | |
tree | 9a454bba8f8fa7ae17d4fc90c9cf0f62cba49e39 /src/libstore/nar-info-disk-cache.cc | |
parent | 992a2ad4757f43c02f3d06771c632a408d90ded0 (diff) |
queryPathInfoUncached(): Return const ValidPathInfo
Diffstat (limited to 'src/libstore/nar-info-disk-cache.cc')
-rw-r--r-- | src/libstore/nar-info-disk-cache.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/nar-info-disk-cache.cc b/src/libstore/nar-info-disk-cache.cc index 32ad7f2b2..5bf982195 100644 --- a/src/libstore/nar-info-disk-cache.cc +++ b/src/libstore/nar-info-disk-cache.cc @@ -219,7 +219,7 @@ public: void upsertNarInfo( const std::string & uri, const std::string & hashPart, - std::shared_ptr<ValidPathInfo> info) override + std::shared_ptr<const ValidPathInfo> info) override { retrySQLite<void>([&]() { auto state(_state.lock()); @@ -228,7 +228,7 @@ public: if (info) { - auto narInfo = std::dynamic_pointer_cast<NarInfo>(info); + auto narInfo = std::dynamic_pointer_cast<const NarInfo>(info); assert(hashPart == storePathToHash(info->path)); |