]> git.ipfire.org Git - thirdparty/pdns.git/commit - pdns/recursordist/test-syncres_cc.cc
rec: RPZ updates are done zone by zone, zones are now shared pointers 5275/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 6 Apr 2017 12:21:32 +0000 (14:21 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 26 Apr 2017 09:34:22 +0000 (11:34 +0200)
commit6b972d59ad6294b00aaffe9d9cda42860d46378e
treefe63214639760d7fd06d415bac2128ef68879ad3
parentdcb1a6f66ab07de6123c8e05d28d9ad4e2025a84
rec: RPZ updates are done zone by zone, zones are now shared pointers

This prevents having to copy and update all the zones even though
the RPZ IXFR tracker only works on one of them at a time.
Also prevents race conditions if two RPZ IXFR tracker threads
update the state at the same time by using `GlobalStateHolder::modify()`
instead of `GlobalStateHolder::setState()`.
pdns/filterpo.cc
pdns/filterpo.hh
pdns/rec-lua-conf.cc
pdns/recursordist/test-syncres_cc.cc
pdns/reczones.cc
pdns/rpzloader.cc
pdns/rpzloader.hh