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

Rewrite RR cache access time update to preserve table insert order #7578

Commits on Aug 22, 2023

  1. Rewrite RR cache access time update to preserve table insert order

    The cache ETS table is a bag table that in itself preserves insert order,
    and when access times in the table are update, it is possible to
    do the insertion of RRs with updated access time in the same order,
    which overall preserves insert order.
    
    To preserve the RR order; rewrite the deduplication code to not store
    the deduplicated result in a map, but instead use a map for deduplication
    lookup and store the result in a list.
    
    All this to not get in the way of DNS servers that e.g. implement load balancing
    by returning RRS in some specific order.
    RaimoNiskanen committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    49e7325 View commit details
    Browse the repository at this point in the history