]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Fix a few cases discoverd by tsan: 10275/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 7 Apr 2021 14:00:57 +0000 (16:00 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 7 Apr 2021 14:00:57 +0000 (16:00 +0200)
commit364a54918a76998b92426476eca6bfb90df1bb4a
tree38843055edab15bb657082700211c857b7d3420b
parent2f44362e8a0d13ac7bc84ad0866d6f21a777889b
rec: Fix a few cases discoverd by tsan:

- The NegCache and MemRecursorCache destructors were not deadlock free
  when running from testrunner. The purpose of the code in the dts
  is also unclear, so delete them.

- quit-nicely uses a volatile sig_atomic_t, which is not thread-safe
  according to tsan. Replace by atomic.
pdns/rec_channel.cc
pdns/rec_channel.hh
pdns/rec_channel_rec.cc
pdns/recursor_cache.cc
pdns/recursor_cache.hh
pdns/recursordist/negcache.cc
pdns/recursordist/negcache.hh