Skip to content

Commit

Permalink
Merge pull request #95070 from cockroachdb/blathers/backport-release-…
Browse files Browse the repository at this point in the history
…22.2-91619

release-22.2: changefeedccl: fix deadlock in mocksyncproducer
  • Loading branch information
samiskin authored Jan 11, 2023
2 parents d91d145 + 4808c4d commit 4c573eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/ccl/changefeedccl/testfeed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,10 @@ func (s *fakeKafkaSink) Dial() error {
return err
}
}
s.feedCh <- m
select {
case s.feedCh <- m:
case <-s.tg.done:
}
return nil
},
}}, nil
Expand Down

0 comments on commit 4c573eb

Please sign in to comment.