2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-02 07:15:44 +00:00

- Secondary servers in a failover pair will now perform ddns removals if

they had performed ddns updates on a lease that is expiring, or was
  released through the primary.  As part of the same fix, stale binding scopes
  will now be removed if a change in identity of a lease's active client is
  detected, rather than simply if a lease is noticed to have expired (which it
  may have expired without a failover server noticing in some situations).
  [ISC-Bugs #19826b]
This commit is contained in:
David Hankins
2009-07-22 17:00:01 +00:00
parent 32fd12cc74
commit b8d45c67ea
3 changed files with 70 additions and 3 deletions

View File

@@ -1462,6 +1462,21 @@ void make_binding_state_transition (struct lease *lease)
lease -> binding_state == FTS_ACTIVE &&
lease -> next_binding_state == FTS_RELEASED))) {
#if defined (NSUPDATE)
/*
* Note: ddns_removals() is also iterated when the lease
* enters state 'released' in 'release_lease()'. The below
* is caught when a peer receives a BNDUPD from a failover
* peer; it may not have received the client's release (it
* may have been offline).
*
* We could remove the call from release_lease() because
* it will also catch here on the originating server after the
* peer acknowledges the state change. However, there could
* be many hours inbetween, and in this case we /know/ the
* client is no longer using the lease when we receive the
* release message. This is not true of expiry, where the
* peer may have extended the lease.
*/
ddns_removals(lease, NULL);
#endif
if (lease -> on_release) {