mochi-hpc / mochi-ssg

Scalable Service Groups (SSG), a group membership service for Mochi
Other
1 stars 1 forks source link

ssg_get_group_member_ids_from_range not working #44

Closed mdorier closed 3 years ago

mdorier commented 3 years ago

I have a group made of 1 single process. I'm calling ssg_get_group_member_ids_from_range as follows:

ssg_member_id_t member_ids[1] = { 0 };
int ret = ssg_get_group_member_ids_from_range(gid, 0, 0, member_ids);

The function is returning 0 but member_ids[0] contains 0 instead of the process' member id, even though the documentation says that the start and end arguments are inclusive.

I believe the problem to be here, where the condition rank_end <= rank_start should actually be rank_end < rank_start.

mdorier commented 3 years ago

I have fixed the issue and committed directly to main.