]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Keep the servers ordered inside pools 3906/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 26 May 2016 17:42:36 +0000 (19:42 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 3 Jun 2016 13:10:09 +0000 (15:10 +0200)
commitd12cd8e9fb77e888850488abc5d636a33c475a8a
treee6070676ceb8eb0ed37cfea00d01c1c8a69b0489
parentdeffaae41f25016c0dd59badf65d6721f08a72c6
dnsdist: Keep the servers ordered inside pools

Several policies expect the servers to be ordered on their 'order'.
In addition to that, we keep the servers in a `NumberedVector` to
be able to pass them as a Lua table to Lua custom policies, and
that means we need to get the numbers right there too, especially
when we remove a server from a pool.
pdns/dnsdist.cc
regression-tests.dnsdist/test_Routing.py