From: Marcin Siodelski Date: Fri, 7 Jul 2017 13:36:10 +0000 (+0200) Subject: [5328] Updated commentary in Memfile_LeaseMgr. X-Git-Tag: trac5333_base~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d862c3bb78817577e922f78cd27e409e144dba5;p=thirdparty%2Fkea.git [5328] Updated commentary in Memfile_LeaseMgr. --- diff --git a/src/lib/dhcpsrv/memfile_lease_mgr.cc b/src/lib/dhcpsrv/memfile_lease_mgr.cc index 516bda7f9c..aee842d459 100644 --- a/src/lib/dhcpsrv/memfile_lease_mgr.cc +++ b/src/lib/dhcpsrv/memfile_lease_mgr.cc @@ -638,6 +638,9 @@ Memfile_LeaseMgr::getLease4(const HWAddr& hwaddr) const { LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE_DETAIL, DHCPSRV_MEMFILE_GET_HWADDR).arg(hwaddr.toText()); Lease4Collection collection; + + // Using composite index by 'hw address' and 'subnet id'. It is + // ok to use it for searching by the 'hw address' only. const Lease4StorageHWAddressSubnetIdIndex& idx = storage4_.get(); std::pair(); std::pair