Skip to content

v2.x: btl/tcp: fix hash map usage #5352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2018

Conversation

jsquyres
Copy link
Member

@jsquyres jsquyres commented Jun 28, 2018

Fix two facepalms:

  1. The "uint32" in the hash map functions refer to the key size, not
    the value size. The values are always 64 bits.
  2. Pass the straight value to the "set" functions -- not the pointer
    to the value.

Signed-off-by: Jeff Squyres [email protected]
(cherry picked from commit 57bc657)

@bosilca The v2.x version of the TCP hash map has already been merged (#5328). This is therefore the v2.x version of #5351, and is a follow-on to #5328.

Fixes #5350

Fix two facepalms:

1. The "uint32" in the hash map functions refer to the *key* size, not
   the *value* size.  The values are always 64 bits.
2. Pass the straight value to the "set" functions -- not the pointer
   to the value.

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit 57bc657)
@jsquyres
Copy link
Member Author

@hppritcha I'm merging this because it's an obvious bug.

@hppritcha hppritcha merged commit a351abf into open-mpi:v2.x Jun 30, 2018
@hppritcha hppritcha added the NEWS label Jun 30, 2018
@hppritcha hppritcha added this to the v2.1.4 milestone Jun 30, 2018
@jsquyres jsquyres deleted the pr/v2.x/fix-btl-tcp-hash-map branch August 2, 2018 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants