]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3694] Make index of the Lease4Storage non-unique.
authorMarcin Siodelski <marcin@isc.org>
Mon, 23 Feb 2015 21:25:24 +0000 (22:25 +0100)
committerMarcin Siodelski <marcin@isc.org>
Mon, 23 Feb 2015 21:25:24 +0000 (22:25 +0100)
This facilitates adding multiple leases for the same client. It may be
important in cases when one lease is being replaced by another and they
co-exist until the previous lease is deleted.

src/lib/dhcpsrv/memfile_lease_storage.h

index 9191f412406b4e2388a38e6136924be79f0943e7..11c77bb4c59eeebd6f9e3e1e8dd15884e3bd2ae9 100644 (file)
@@ -88,7 +88,7 @@ typedef boost::multi_index_container<
         >,
 
         // Specification of the second index starts here.
-        boost::multi_index::ordered_unique<
+        boost::multi_index::ordered_non_unique<
             // This is a composite index that combines two attributes of the
             // Lease4 object: hardware address and subnet id.
             boost::multi_index::composite_key<