We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76c0441 commit c00a3c4Copy full SHA for c00a3c4
src/resolver.c
@@ -388,12 +388,12 @@ scatter_status_requests(MtmConfig *mtm_cfg)
388
{
389
int i;
390
391
- for (i = 0; i < MTM_MAX_NODES; i++)
+ for (i = 0; i < mtm_cfg->n_nodes; i++)
392
393
- if (!BIT_CHECK(SELF_CONNECTIVITY_MASK, i) &&
394
- i + 1 != mtm_cfg->my_node_id)
+ int node_id = mtm_cfg->nodes[i].node_id;
+
395
+ if (!BIT_CHECK(SELF_CONNECTIVITY_MASK, node_id - 1))
396
- int node_id = i + 1;
397
MtmArbiterMessage msg;
398
DmqDestinationId dest_id;
399
0 commit comments