Skip to content

REL_2_5-PBCKP-236 #531

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

Merged
merged 20 commits into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
7 changes: 2 additions & 5 deletions src/utils/remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,9 @@ size_t prepare_compatibility_str(char* compatibility_buf, size_t compatibility_b
};

size_t result_size = 0;
size_t compatibility_params_array_size = sizeof compatibility_params / sizeof compatibility_params[0];;

*compatibility_buf = '\0';
Assert(compatibility_params_array_size % 2 == 0);

for (int i = 0; i < compatibility_params_array_size; i+=2)
for (int i = 0; i < sizeof compatibility_params; i+=2)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Было правильно, зря убрал.

{
if (compatibility_params[i].strval != NULL)
result_size += snprintf(compatibility_buf + result_size, compatibility_buf_size - result_size,
Expand Down Expand Up @@ -366,7 +363,7 @@ void check_remote_agent_compatibility(int agent_version, char *compatibility_str
prepare_compatibility_str(buf, sizeof buf);
if(strcmp(compatibility_str, buf))
{
elog(ERROR, "Incompatible remote agent params, expected:\n%s, actual:\n:%s ", buf, compatibility_str);
elog(ERROR, "Incompatible remote agent params, expected:\n%s, actual:\n:%s", buf, compatibility_str);
}
}
}
2 changes: 1 addition & 1 deletion tests/compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def setUp(self):
self.fname = self.id().split('.')[3]

# @unittest.expectedFailure
@unittest.skip("skip")
# @unittest.skip("skip")
def test_catchup_with_different_remote_major_pg(self):
"""
Decription in jira issue PBCKP-236
Expand Down