Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Currently the foreachkey implementation is
#define foreachkey(VAR, COL) \ foreachpair (VAR, __foreach__::ignore, COL)
This works in most structures. But in multimap, one key may map to multi values. This means there are multi pairs which have same key. So when call foreachkey, the key would duplicated when iteration. My idea to solve this is we prefer call foreach on (COL).keys() if keys() method exists in COL.
Attachments
Issue Links
- relates to
-
MESOS-9889 Master CPU high due to unexpected foreachkey behaviour in Master::__reregisterSlave.
- Resolved