Skip to content
Snippets Groups Projects
Commit 164bb07d authored by Craig Tiller's avatar Craig Tiller
Browse files

Fix build breakage

parent ee56eb60
No related branches found
No related tags found
No related merge requests found
...@@ -616,6 +616,8 @@ static void verify_rebirth_round_robin(const servers_fixture *f, ...@@ -616,6 +616,8 @@ static void verify_rebirth_round_robin(const servers_fixture *f,
expected_connection_sequence = gpr_malloc(sizeof(int) * expected_seq_length); expected_connection_sequence = gpr_malloc(sizeof(int) * expected_seq_length);
seen_elements = gpr_malloc(sizeof(int) * expected_seq_length); seen_elements = gpr_malloc(sizeof(int) * expected_seq_length);
unique_seq_last_idx = ~(size_t)0;
memset(seen_elements, 0, sizeof(uint8_t) * expected_seq_length); memset(seen_elements, 0, sizeof(uint8_t) * expected_seq_length);
for (i = 0; i < num_iters; i++) { for (i = 0; i < num_iters; i++) {
if (actual_connection_sequence[i] < 0 || if (actual_connection_sequence[i] < 0 ||
...@@ -635,9 +637,11 @@ static void verify_rebirth_round_robin(const servers_fixture *f, ...@@ -635,9 +637,11 @@ static void verify_rebirth_round_robin(const servers_fixture *f,
} }
/* make sure we found a valid run */ /* make sure we found a valid run */
for (j = 0; j < expected_seq_length; j++) { for (j = 0; j < expected_seq_length; j++) {
GPR_ASSERT (seen_elements[j] != 0); GPR_ASSERT(seen_elements[j] != 0);
} }
GPR_ASSERT(unique_seq_last_idx != ~(size_t)0);
unique_seq_first_idx = (unique_seq_last_idx - expected_seq_length + 1); unique_seq_first_idx = (unique_seq_last_idx - expected_seq_length + 1);
memcpy(expected_connection_sequence, memcpy(expected_connection_sequence,
actual_connection_sequence + unique_seq_first_idx, actual_connection_sequence + unique_seq_first_idx,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment