Skip to content

Use stats.Gauge w/o mutex for VStreamerCount stat#36

Merged
timvaillancourt merged 1 commit intoslack-vitess-r13.0.3from
stats-VStreamerCount-no-mutex
Jan 7, 2023
Merged

Use stats.Gauge w/o mutex for VStreamerCount stat#36
timvaillancourt merged 1 commit intoslack-vitess-r13.0.3from
stats-VStreamerCount-no-mutex

Conversation

@timvaillancourt
Copy link

@timvaillancourt timvaillancourt commented Dec 20, 2022

Description

This PR updates the new VStreamerCount stat to match the approach PlanetScale suggested in the upstream PR vitessio#11978 (merged)

Currently our fork implements the same new stat but it uses a mutex. The PR accepted by upstream does not use a mutex, which is smarter

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

Copy link

@tanjinx tanjinx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@timvaillancourt timvaillancourt merged commit c9b5311 into slack-vitess-r13.0.3 Jan 7, 2023
@timvaillancourt timvaillancourt deleted the stats-VStreamerCount-no-mutex branch January 7, 2023 00:05
@tanjinx tanjinx added the v13 label Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants