Backport #4638: auth: In `Bind2Backend::lookup()`, use the `zoneId` when we have it #4754

Merged
merged 1 commit into from Dec 16, 2016

Projects

None yet

2 participants

@rgacogne
Member

Short description

After the initial lookup corresponding to a DNSBackend::getAuth(),
the subsequent ones already have the zoneId, so use it instead of
looping on chopOff() again. This should be much more efficient.

(cherry picked from commit 937a662)

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled and tested this code
  • checked that this code was merged to master
@rgacogne rgacogne auth: In `Bind2Backend::lookup()`, use the `zoneId` when we have it
After the initial lookup corresponding to a `DNSBackend::getAuth()`,
the subsequent ones already have the `zoneId`, so use it instead of
looping on `chopOff()` again. This should be much more efficient.

(cherry picked from commit 937a662)
b854d9f
@pieterlexis pieterlexis merged commit 642b7b0 into PowerDNS:rel/auth-4.0.x Dec 16, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@rgacogne rgacogne deleted the rgacogne:auth40-backport-4638 branch Dec 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment