From: Marcin Siodelski Date: Mon, 23 Feb 2015 21:25:24 +0000 (+0100) Subject: [3694] Make index of the Lease4Storage non-unique. X-Git-Tag: trac3713_base~1^2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3cf8250f657aebfa04969333b5c05649ca4913b7;p=thirdparty%2Fkea.git [3694] Make index of the Lease4Storage non-unique. 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. --- diff --git a/src/lib/dhcpsrv/memfile_lease_storage.h b/src/lib/dhcpsrv/memfile_lease_storage.h index 9191f41240..11c77bb4c5 100644 --- a/src/lib/dhcpsrv/memfile_lease_storage.h +++ b/src/lib/dhcpsrv/memfile_lease_storage.h @@ -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<