Skip to content
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

mark all ranks known to graph when "all" is specified #1042

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions resource/modules/resource_match.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1114,14 +1114,10 @@ static int grow_resource_db (std::shared_ptr<resource_ctx_t> &ctx,
static int decode_all (std::shared_ptr<resource_ctx_t> &ctx,
std::set<int64_t> &ranks)
{
unsigned int size = 0;
unsigned int rank = 0;
if (flux_get_size (ctx->h, &size) < -1) {
flux_log (ctx->h, LOG_ERR, "%s: flux_get_size", __FUNCTION__);
return -1;
}
for (rank = 0; rank < size; ++rank) {
auto ret = ranks.insert (static_cast<int64_t> (rank));
int64_t size = ctx->db->metadata.by_rank.size();

for (int64_t rank = 0; rank < size; ++rank) {
auto ret = ranks.insert (rank);
if (!ret.second) {
errno = EEXIST;
return -1;
Expand Down