pingcap / pingcap/tidb

Stats: return chunk back to pool after done using go AddCleanup

Open
#63,184 2 comments 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

there is method to return chunk back to pool called ReleaseAndPutToPool but it's manually called in some cases. We could potentially use go feature AddCleanup to let runtime do it for us, which should be simpler and safer.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.