Skip to content

Commit

Permalink
Merge pull request #1042 from trws/fix-mark-all
Browse files Browse the repository at this point in the history
mark all ranks known to graph when "all" is specified
  • Loading branch information
mergify[bot] authored Jun 27, 2023
2 parents 32f74d6 + ac204c2 commit 65da8f2
Showing 1 changed file with 4 additions and 8 deletions.
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

0 comments on commit 65da8f2

Please sign in to comment.