Browse Source

[3973] Updated descriptions of lease reclamation routines in alloc_engine.h

Marcin Siodelski 9 years ago
parent
commit
d172fb5008
1 changed files with 16 additions and 0 deletions
  1. 16 0
      src/lib/dhcpsrv/alloc_engine.h

+ 16 - 0
src/lib/dhcpsrv/alloc_engine.h

@@ -497,6 +497,14 @@ public:
     /// See http://kea.isc.org/wiki/LeaseExpirationDesign#LeasesReclamationRoutine
     /// for the details.
     ///
+    /// This method is executed periodically to act upon expired leases. This
+    /// includes for each lease:
+    /// - executing "lease_expire6" hook,
+    /// - removing DNS record for a lease,
+    /// - reclaiming a lease in the database, i.e. setting its state to
+    ///   "expired-reclaimed" or removing it from the lease databse,
+    /// - updating statistics of assigned and reclaimed leases
+    ///
     /// @param max_leases Maximum number of leases to be reclaimed.
     /// @param timeout Maximum amount of time that the reclaimation routine
     /// may be processing expired leases, expressed in seconds.
@@ -512,6 +520,14 @@ public:
     /// See http://kea.isc.org/wiki/LeaseExpirationDesign#LeasesReclamationRoutine
     /// for the details.
     ///
+    /// This method is executed periodically to act upon expired leases. This
+    /// includes for each lease:
+    /// - executing "lease_expire6" hook,
+    /// - removing DNS record for a lease,
+    /// - reclaiming a lease in the database, i.e. setting its state to
+    ///   "expired-reclaimed" or removing it from the lease databse,
+    /// - updating statistics of assigned and reclaimed leases
+    ///
     /// @param max_leases Maximum number of leases to be reclaimed.
     /// @param timeout Maximum amount of time that the reclaimation routine
     /// may be processing expired leases, expressed in seconds.