Parcourir la source

[3965] Updated descriptions of indexes in the Memfile storages.

Marcin Siodelski il y a 9 ans
Parent
commit
b2d4e27abc
1 fichiers modifiés avec 12 ajouts et 0 suppressions
  1. 12 0
      src/lib/dhcpsrv/memfile_lease_storage.h

+ 12 - 0
src/lib/dhcpsrv/memfile_lease_storage.h

@@ -59,6 +59,12 @@ struct ClientIdHWAddressSubnetIdIndexTag { };
 /// The leases in the container may be accessed using different indexes:
 /// - using an IPv6 address,
 /// - using a composite index: DUID, IAID and lease type.
+/// - using a composite index: boolean flag indicating if the state is
+///   "expired-reclaimed" and expiration time.
+///
+/// Indexes can be accessed using the index number (from 0 to 2) or a
+/// name tag. It is recommended to use the tags to access indexes as
+/// they do not depend on the order of indexes in the container.
 typedef boost::multi_index_container<
     // It holds pointers to Lease6 objects.
     Lease6Ptr,
@@ -116,6 +122,12 @@ typedef boost::multi_index_container<
 /// - composite index: HW address and subnet id,
 /// - composite index: client id and subnet id,
 /// - composite index: HW address, client id and subnet id
+/// - using a composite index: boolean flag indicating if the state is
+///   "expired-reclaimed" and expiration time.
+///
+/// Indexes can be accessed using the index number (from 0 to 4) or a
+/// name tag. It is recommended to use the tags to access indexes as
+/// they do not depend on the order of indexes in the container.
 typedef boost::multi_index_container<
     // It holds pointers to Lease4 objects.
     Lease4Ptr,