Skip to content

Commit

Permalink
Revert "Handle KeyNotFoundException in recurse_index_key" (#1776)
Browse files Browse the repository at this point in the history
Reverts #1766
  • Loading branch information
G-D-Petrov authored Aug 20, 2024
1 parent e045687 commit 3547fe9
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions cpp/arcticdb/util/key_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,10 @@ ankerl::unordered_dense::set<AtomKey> recurse_segment(const std::shared_ptr<stre
inline ankerl::unordered_dense::set<AtomKey> recurse_index_key(const std::shared_ptr<stream::StreamSource>& store,
const IndexTypeKey& index_key,
const std::optional<VersionId>& version_id=std::nullopt) {
ankerl::unordered_dense::set<AtomKey> res;
try {
auto segment = store->read_sync(index_key).second;
res = recurse_segment(store, segment, version_id);
res.emplace(index_key);
return res;
} catch (const storage::KeyNotFoundException& e) {
log::storage().debug("Key {} not found in store: {}", index_key, e.what());
return res;
}
auto segment = store->read_sync(index_key).second;
auto res = recurse_segment(store, segment, version_id);
res.emplace(index_key);
return res;
}

inline ankerl::unordered_dense::set<AtomKey> recurse_segment(const std::shared_ptr<stream::StreamSource>& store,
Expand Down

0 comments on commit 3547fe9

Please sign in to comment.