-
Notifications
You must be signed in to change notification settings - Fork 4k
copy: fix nil pointer in COPY telemetry logging #103738
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
Conversation
7a63a3a to
3341b5a
Compare
| initPlanner: func(ctx context.Context, p *planner) { | ||
| ex.initPlanner(ctx, p) | ||
| }, | ||
| resetPlanner: func(ctx context.Context, p *planner, txn *kv.Txn, txnTS time.Time, stmtTS time.Time) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we delete resetPlanner from the copyTxnOpt struct too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops my fix is invalid. i forgot about the mode where we batch copies and call this resetPlanner in between each batch.
3341b5a to
7c70f57
Compare
7c70f57 to
542028c
Compare
Release note (bug fix): Fixed a panic that could occur while a COPY statement is logged for telemetry purposes.
542028c to
307b038
Compare
|
went with a more basic fix. please take another look! |
|
tftr! bors r+ |
|
This PR was included in a batch that was canceled, it will be automatically retried |
|
Build succeeded: |
fixes #102494
Release note (bug fix): Fixed a panic that could occur while a COPY statement is logged for telemetry purposes.