]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: cache stringified transaction key once per transaction
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Dec 2015 13:20:03 +0000 (14:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Dec 2015 13:48:49 +0000 (14:48 +0100)
commita5784c498598348354543b23b13ee8639a8b9e35
tree640f5336589247fc04cdcc6c7d9c972a20e107ca
parent1ade96e980d3c0855a04140f4728b3ffd429bbea
resolved: cache stringified transaction key once per transaction

We end up needing the stringified transaction key in many log messages,
hence let's simplify the logic and cache it inside of the transaction:
generate it the first time we need it, and reuse it afterwards. Free it
when the transaction goes away.

This also updated a couple of log messages to make use of this.
src/resolve/resolved-dns-transaction.c
src/resolve/resolved-dns-transaction.h