Closed
Description
I discovered today that map.lookup_or_init()
has bizarre behavior if the insert into the map fails (e.g. the map is full). It is either a documentation error, or an implementation error.
The actual behavior is that lookup_or_init()
actually returns (with a return value of 0) from the function in which it is executed!! I would think that the more reasonable approach would be to make the lookup_or_init
method itself return 0 if the insert fails....
Thoughts?
Metadata
Assignees
Labels
No labels