Skip to content

Copy parameter data from byte buffer in COM_STMT_SEND_LONG_DATA#8562

Merged
harshit-gangal merged 3 commits intovitessio:mainfrom
planetscale:8294-main
Aug 2, 2021
Merged

Copy parameter data from byte buffer in COM_STMT_SEND_LONG_DATA#8562
harshit-gangal merged 3 commits intovitessio:mainfrom
planetscale:8294-main

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>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
@harshit-gangal harshit-gangal merged commit cb05438 into vitessio:main Aug 2, 2021
@harshit-gangal harshit-gangal deleted the 8294-main branch August 2, 2021 13:15
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