Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: periodically clear per app transaction statistics map
For every app, we collect both statement and transaction statistics. This datastructure is periodically reset to ensure it doesn't get unboundedly large. This happens by manually resetting the datastructures inside the app stats map instead of resetting the outer map. Recently, we started collecting transaction statistics here in addition to statement statistics, but we never added code to reset the transaction statistics map. This patch corrects that oversight. Fixes cockroachdb#54452 Release note (bug fix): There was a bug in transaction statistics collection that could let the datastructure grow unboundedly large. This is now fixed, and the resetting happens at the same cadence as statement statistics.
- Loading branch information