Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
1e16e4ca
Unverified
Commit
1e16e4ca
authored
Aug 10, 2023
by
peizhou001
Committed by
GitHub
Aug 10, 2023
Browse files
[Graphbolt]Throw exception when id not found (#6128)
parent
b328b85f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
graphbolt/src/concurrent_id_hash_map.cc
graphbolt/src/concurrent_id_hash_map.cc
+3
-0
No files found.
graphbolt/src/concurrent_id_hash_map.cc
View file @
1e16e4ca
...
...
@@ -160,6 +160,9 @@ inline IdType ConcurrentIdHashMap<IdType>::MapId(IdType id) const {
Next
(
&
pos
,
&
delta
);
key
=
hash_map_data
[
getKeyIndex
(
pos
)];
}
if
(
key
==
empty_key
)
{
throw
std
::
out_of_range
(
"Id not found: "
+
std
::
to_string
(
id
));
}
return
hash_map_data
[
getValueIndex
(
pos
)];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment