]> 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>
Thu, 1 Oct 2020 16:09:35 +0000 (18:09 +0200)
commit7a90ad1fe2d2420ce70e8c73271bf72ab326bd6f
tree253a87c0a188e1432c5f483dcfff48569541161c
parent4b6b3e4158ced209b995248b798f8c60f909eda9
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.

(cherry picked from commit d4976e0ebeb6a29a6844d83bcd4be626fb9f8fbf)
lib/ns/include/ns/client.h
lib/ns/query.c