Skip to content

Revert double buffering. #1435

Closed
Closed
@methane

Description

@methane

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions