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

Revert double buffering. #1435

Open
methane opened this issue May 24, 2023 · 1 comment
Open

Revert double buffering. #1435

methane opened this issue May 24, 2023 · 1 comment

Comments

@methane
Copy link
Member

methane commented May 24, 2023

Go 1.21 will fix race between Context cancel and sql.RawBytes.
See golang/go#60304

It will be backported to Go 1.19.

We had implemented double buffering (#943) to workaround it. It increase memory usage and complexity.

After Go 1.19.10 containing this fix is released, let's remove the double buffering in go-mysql-driver v1.8.0.

P.S. We need to drop Go 1.18 support. It would violate our Go version support policy. But Go 1.21 will be released in August, before we release v1.8.0.

@methane
Copy link
Member Author

methane commented Oct 9, 2023

It is not backported into Go 1.19 and 1.20.
So we need to wait that we drop Go 1.20 support.

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

1 participant