]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add separate prefetch nmhandle to ns_client_t
authorOndřej Surý <ondrej@sury.org>
Tue, 15 Sep 2020 10:55:03 +0000 (12:55 +0200)
committerOndřej Surý <ondrej@sury.org>
Tue, 22 Sep 2020 07:56:26 +0000 (09:56 +0200)
commitd4976e0ebeb6a29a6844d83bcd4be626fb9f8fbf
tree98f53d6fbed3243425495ad9f41a8b8d081914aa
parente60370bacdb83e4560d62d64b22b0e8b732ca16b
Add separate prefetch nmhandle to ns_client_t

As the query_prefetch() or query_rpzfetch() could be called during
"regular" fetch, we need to introduce separate storage for attaching
the nmhandle during prefetching the records.  The query_prefetch()
and query_rpzfetch() are guarded for re-entrance by .query.prefetch
member of ns_client_t, so we can reuse the same .prefetchhandle for
both.
lib/ns/include/ns/client.h
lib/ns/query.c