Skip to content

Commit 415d704

Browse files
samuelkgutierrezrhc54
authored andcommitted
gds:shmem Don't require explicit SID during pack.
Signed-off-by: Samuel K. Gutierrez <[email protected]>
1 parent 30af16d commit 415d704

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/mca/gds/shmem/gds_shmem.c

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,6 @@ get_local_job_data_info(
13081308
pmix_status_t rc = PMIX_SUCCESS;
13091309
size_t nhtentries = 0;
13101310
uint32_t sid = UINT32_MAX;
1311-
bool have_sid = false;
13121311

13131312
pmix_buffer_t data;
13141313
PMIX_CONSTRUCT(&data, pmix_buffer_t);
@@ -1330,7 +1329,6 @@ get_local_job_data_info(
13301329
PMIX_ERROR_LOG(rc);
13311330
goto out;
13321331
}
1333-
have_sid = true;
13341332
}
13351333
}
13361334
// Just a key/value pair, so they will likely go into the hash table.
@@ -1344,17 +1342,9 @@ get_local_job_data_info(
13441342
goto out;
13451343
}
13461344
}
1347-
// Make sure that we were given a session ID.
1348-
// If not, this is an internal error.
1349-
if (!have_sid) {
1350-
rc = PMIX_ERROR;
1351-
PMIX_ERROR_LOG(rc);
1352-
}
1353-
else {
1354-
pji->session_id = sid;
1355-
pji->packed_size = data.bytes_used;
1356-
pji->hash_table_size = get_actual_hashtab_capacity(nhtentries);
1357-
}
1345+
pji->session_id = sid;
1346+
pji->packed_size = data.bytes_used;
1347+
pji->hash_table_size = get_actual_hashtab_capacity(nhtentries);
13581348
out:
13591349
PMIX_DESTRUCT(&data);
13601350
return rc;

0 commit comments

Comments
 (0)