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

Implement readonly flag in MySQL data store. #321

Open
mol123 opened this issue Apr 22, 2021 · 1 comment
Open

Implement readonly flag in MySQL data store. #321

mol123 opened this issue Apr 22, 2021 · 1 comment

Comments

@mol123
Copy link
Contributor

mol123 commented Apr 22, 2021

In the MySQL datastore, the handling of the readonly flag should be implemented in runInTx.

At least, recent versions of the golang sql package provide a way to pass it in to BeginTx. We don't know how complete the actual mysql driver support is.

@bgalehouse
Copy link
Contributor

I looked into it a bit more, and recent versions of the mysql driver do pass the constraint down, and the InnoDB engine claims to take advantage of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants