Skip to content

Commit

Permalink
gcs: fix a deadlock in gs parallel writer (#49800)
Browse files Browse the repository at this point in the history
ref #48443
  • Loading branch information
lance6716 authored Dec 27, 2023
1 parent dc694a1 commit 6c6c127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br/pkg/storage/gcs_extra.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (w *GCSWriter) readChunk(ch chan chunk) {
select {
case <-w.ctx.Done():
data.cleanup()
return
w.err.CompareAndSwap(nil, w.ctx.Err())
default:
part := &xmlMPUPart{
uploadBase: w.uploadBase,
Expand Down

0 comments on commit 6c6c127

Please sign in to comment.