]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: replace transaction list by hashmap
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Aug 2015 21:15:51 +0000 (23:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Aug 2015 21:15:51 +0000 (23:15 +0200)
commitda0c630e141e3c3fab633a1c7a0686295e2c9411
tree46690b50506c9b2ce410b7e28083138663beeac5
parent53496ca9adc383bd8aa28e8f75f1b21c2cc82b05
resolved: replace transaction list by hashmap

Right now we keep track of ongoing transactions in a linked listed for
each scope. Replace this by a hashmap that is indexed by the RR key.
Given that all ongoing transactions will be placed in pretty much the
same scopes usually this should optimize behaviour.

We used to require a list here, since we wanted to do "superset" query
checks, but this became obsolete since transactions are now single-key
instead of multi-key.
src/resolve/resolved-dns-scope.c
src/resolve/resolved-dns-scope.h
src/resolve/resolved-dns-transaction.c