Skip to content

Fix bug when setting existing key in full dict (minimal version of PR #32)#43

Merged
horkhe merged 1 commit intomailgun:masterfrom
nicktimko:key-reset-bad-drop-pr32reduced
Jan 27, 2020
Merged

Fix bug when setting existing key in full dict (minimal version of PR #32)#43
horkhe merged 1 commit intomailgun:masterfrom
nicktimko:key-reset-bad-drop-pr32reduced

Conversation

@nicktimko
Copy link
Copy Markdown
Contributor

Minimal version of PR #32 without adding a counter.

Line 133 in the test file would trigger the logic to unconditionally drop the oldest element at key 'a' without checking if we're going to overwrite an additional element and not actually extend the size of the dictionary.

Minimal version of PR mailgun#32 without adding a counter.
@nicktimko nicktimko changed the title Fix bug when setting existing key in full dict Fix bug when setting existing key in full dict (minimal version of PR #32) Jan 21, 2020
@nicktimko nicktimko requested a review from horkhe January 21, 2020 22:33
@horkhe horkhe merged commit 81ada80 into mailgun:master Jan 27, 2020
@horkhe
Copy link
Copy Markdown
Member

horkhe commented Jan 27, 2020

Thank you for your contribution.

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