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

IGNITE-23388 Use TreeMap for collecting CdcEvents #291

Merged
merged 10 commits into from
Oct 18, 2024
Merged

Conversation

timoninmaxim
Copy link
Member

No description provided.

@@ -36,10 +36,10 @@ public abstract class AbstractCdcEventsApplier<K, V> {
private final int maxBatchSize;

/** Update batch. */
private final Map<K, V> updBatch = new HashMap<>();
private final Map<K, V> updBatch = new TreeMap<>(this::compareKey);
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use SortedMap instead of just Map.

@timoninmaxim timoninmaxim merged commit fcfb076 into master Oct 18, 2024
@timoninmaxim timoninmaxim deleted the IGNITE-23388 branch October 18, 2024 12:31
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