Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
110775: sql: remove accidental copy of inFlightTraceCollector r=yuzefovich a=michae2

The `finish` method of `inFlightTraceCollector` had a value receiver. I think we meant for this to be a pointer receiver, so that we didn't operate on a copy of the trace collector.

Fixes: cockroachdb#110186

Release note: None

Co-authored-by: Michael Erickson <[email protected]>
  • Loading branch information
craig[bot] and michae2 committed Sep 18, 2023
2 parents 8fc109c + 7b9a1c9 commit d414347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sql/instrumentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func pollInFlightTrace(
return trace, err
}

func (c inFlightTraceCollector) finish() {
func (c *inFlightTraceCollector) finish() {
if c.cancel == nil {
// The in-flight trace collector goroutine wasn't started.
return
Expand Down

0 comments on commit d414347

Please sign in to comment.