Skip to content

test: clarify that ordered_set_put() returns -EEXIST if entry is duplicated - #16561

Merged
poettering merged 2 commits into
systemd:masterfrom
yuwata:test-ordered-set
Jul 23, 2020
Merged

poettering merged 2 commits into
systemd:masterfrom
yuwata:test-ordered-set

Conversation

@yuwata

@yuwata yuwata commented Jul 23, 2020

Copy link
Copy Markdown
Member

No description provided.

This API is a complete mess. We forgot to do a hashed comparison for duplicate
entries and we use a direct pointer comparison. For trivial_hash_ops the result
is the same. For all other case, it's not. Fixing this properly will require
auditing all the uses of set_put() and ordered_set_put(). For now, let's just
acknowledge the breakage.
@keszybz keszybz added the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Jul 23, 2020
@keszybz

keszybz commented Jul 23, 2020

Copy link
Copy Markdown
Member

Not much to discuss here, let's merge this when CI passes.

@yuwata

yuwata commented Jul 23, 2020

Copy link
Copy Markdown
Member Author

@keszybz Thank you for the follow-up commit.

@poettering
poettering merged commit e976945 into systemd:master Jul 23, 2020
@yuwata
yuwata deleted the test-ordered-set branch July 23, 2020 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed tests

Development

Successfully merging this pull request may close these issues.

3 participants