Skip to content
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

Refactor awaitSchemaAgreement logic #256

Merged
merged 7 commits into from
Sep 6, 2024

Conversation

sylwiaszunejko
Copy link
Collaborator

Previously due to the wrong re-declarations of one variable error handling logic in awaitSchemaAgreement was broken. This code has always had the same result because the err in the condition was the error declared in the function definition not the one used in the for loop above.
https://github.com/scylladb/gocql/blob/master/conn.go#L1879-L1881

This PR fixes error handling as well as refactors some pieces of the code.

Fixes: #70

conn.go Outdated Show resolved Hide resolved
integration_test.go Outdated Show resolved Hide resolved
conn.go Outdated Show resolved Hide resolved
conn.go Outdated Show resolved Hide resolved
conn.go Outdated Show resolved Hide resolved
integration_test.go Show resolved Hide resolved
@dkropachev dkropachev merged commit 3a1e987 into scylladb:master Sep 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Await schema agreement returns wrong error
2 participants