Skip to content

Copy parameter data from byte buffer in COM_STMT_SEND_LONG_DATA#8561

Merged
harshit-gangal merged 1 commit intovitessio:release-11.0from
planetscale:8294-11
Aug 1, 2021
Merged

Copy parameter data from byte buffer in COM_STMT_SEND_LONG_DATA#8561
harshit-gangal merged 1 commit intovitessio:release-11.0from
planetscale:8294-11

Conversation

@systay
Copy link
Copy Markdown
Collaborator

@systay systay commented Jul 29, 2021

Description

Backport of #8294

During high load, if prepared statements are used, the parameter values could accidentally get overwritten with dirty data from other concurrent connections.

This PR fixes this by copying the data before releasing the buffer.

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
@harshit-gangal harshit-gangal merged commit a43d572 into vitessio:release-11.0 Aug 1, 2021
@harshit-gangal harshit-gangal deleted the 8294-11 branch August 1, 2021 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants