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

Remove stop funcion #38

Closed
wants to merge 2 commits into from
Closed

Remove stop funcion #38

wants to merge 2 commits into from

Conversation

vivian-rook
Copy link
Contributor

Does not work with threads on separate instances

Bug: T362213

)
result_dictionary = ast.literal_eval(query_run.extra_info)
if "connection_id" in result_dictionary:
g.replica.connection = db_of_process
Copy link
Member

Choose a reason for hiding this comment

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

fwiw, this seems obviously wrong - db_of_process is a parameter with the database name, so it doesn't have a .cursor() method that the next line uses

Copy link
Collaborator

Choose a reason for hiding this comment

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

it's fine. .connection = on this line invokes the setter in the Replica class. On the next line, it's a getter which gives the underlying pymysql connection which does have a .cursor() method.

Does not work with threads on separate instances

Bug: T362213
@vivian-rook vivian-rook deleted the T362213 branch May 21, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants