Content-Length: 236619 | pFad | http://github.com/tailscale/tailscale/pull/14608

6A util/topk: prevent duplicate elements by andrew-d · Pull Request #14608 · tailscale/tailscale · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util/topk: prevent duplicate elements #14608

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andrew-d
Copy link
Member

Previously, we would insert duplicate elements into the TopK datastructure while it wasn't fully populated, which resulted in incorrect data due to a single "top" entry being split among multiple elements.

Updates tailscale/corp#25479

Change-Id: Ibf118bd41534dc53e0ce9be68cfcbda267b4de77

Previously, we would insert duplicate elements into the TopK
datastructure while it wasn't fully populated, which resulted in
incorrect data due to a single "top" entry being split among multiple
elements.

Updates tailscale/corp#25479

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: Ibf118bd41534dc53e0ce9be68cfcbda267b4de77
@andrew-d andrew-d requested review from bradfitz and raggi January 10, 2025 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/tailscale/tailscale/pull/14608

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy