Skip to content

Commit

Permalink
fix closeWriters
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Mar 3, 2023
1 parent 86b5e60 commit 394c2b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddl/ingest/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (ei *engineInfo) newWriterContext(workerID int, unique bool) (*WriterContex

func (ei *engineInfo) closeWriters() error {
var firstErr error
for wid := range ei.writerCache.Keys() {
for _, wid := range ei.writerCache.Keys() {
if w, ok := ei.writerCache.Load(wid); ok {
_, err := w.Close(ei.ctx)
if err != nil {
Expand Down

0 comments on commit 394c2b7

Please sign in to comment.