Skip to content

Commit

Permalink
fix: BinlogDeserializeReader leak (#36087)
Browse files Browse the repository at this point in the history
#36086

Signed-off-by: fengjun2016 <[email protected]>
  • Loading branch information
fengjun2016 authored Sep 10, 2024
1 parent f4d0c58 commit 4850641
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/indexnode/task_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ func (st *statsTask) downloadData(ctx context.Context, numRows int64, PKFieldID
break
} else {
log.Warn("downloadData wrong, failed to iter through data", zap.Error(err))
iter.Close()
return nil, err
}
}
Expand All @@ -399,6 +400,7 @@ func (st *statsTask) downloadData(ctx context.Context, numRows int64, PKFieldID
values = append(values, iter.Value())
remainingRowCount++
}
iter.Close()
}

log.Info("download data success",
Expand Down

0 comments on commit 4850641

Please sign in to comment.