Skip to content

Deduplicate point IDs returned from proxy segment - #5540

Merged
timvisee merged 1 commit into
devfrom
proxy-segment-read-filtered-dedup
Nov 28, 2024
Merged

timvisee merged 1 commit into
devfrom
proxy-segment-read-filtered-dedup

Conversation

@timvisee

Copy link
Copy Markdown
Member

In case of a proxy segment, the functions that return available point IDs may include duplicates. That's especially true when the write segment is shared across multiple proxies.

In some places we derive point count based on the returned list, which would double count any duplicates.

I think it's best to deduplicate to prevent this from happening.

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you formatted your code locally using cargo +nightly fmt --all command prior to submission?
  3. Have you checked your code using cargo clippy --all --all-features command?

@timvisee
timvisee requested a review from generall November 28, 2024 16:50
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