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

ets:insert/2 insert order preserved when list with same keys for bag table #6752

Merged
merged 2 commits into from
Feb 6, 2023

Commits on Feb 6, 2023

  1. erts: Fix ets:insert with list into bag being reversed

    After discussion in erlang#6730
    
    Changed `db_term_list_prepend*` to `db_term_list_append*` so values to
    be stored against a key have their order preserved. Previously due to
    building the linked list via prepending, the values insert order was
    reversed from OTP 23 onward.
    madlep authored and sverker committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    68328c1 View commit details
    Browse the repository at this point in the history
  2. stdlib: Improve ets documentation about insert/lookup times

    Describe and warn about lots of objects with same keys
    in bag and duplicate_bag.
    sverker committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    d698464 View commit details
    Browse the repository at this point in the history