mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-29 21:18:02 +00:00
[894-make-memfile-thread-safe] Finished update
This commit is contained in:
parent
07d50324e1
commit
cb60de548c
@ -969,12 +969,9 @@ Memfile_LeaseMgr::getLeases4(SubnetID subnet_id) const {
|
||||
return (collection);
|
||||
}
|
||||
|
||||
Lease4Collection
|
||||
Memfile_LeaseMgr::getLeases4(const std::string& hostname) const {
|
||||
LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE_DETAIL, DHCPSRV_MEMFILE_GET_HOSTNAME4)
|
||||
.arg(hostname);
|
||||
|
||||
Lease4Collection collection;
|
||||
void
|
||||
Memfile_LeaseMgr::getLeases4Internal(const std::string& hostname,
|
||||
Lease4Collection& collection) const {
|
||||
const Lease4StorageHostnameIndex& idx = storage4_.get<HostnameIndexTag>();
|
||||
std::pair<Lease4StorageHostnameIndex::const_iterator,
|
||||
Lease4StorageHostnameIndex::const_iterator> l =
|
||||
@ -983,8 +980,6 @@ Memfile_LeaseMgr::getLeases4(const std::string& hostname) const {
|
||||
for (auto lease = l.first; lease != l.second; ++lease) {
|
||||
collection.push_back(Lease4Ptr(new Lease4(**lease)));
|
||||
}
|
||||
|
||||
return (collection);
|
||||
}
|
||||
|
||||
Lease4Collection
|
||||
@ -1205,12 +1200,9 @@ Memfile_LeaseMgr::getLeases6(SubnetID subnet_id) const {
|
||||
return (collection);
|
||||
}
|
||||
|
||||
Lease6Collection
|
||||
Memfile_LeaseMgr::getLeases6(const std::string& hostname) const {
|
||||
LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE_DETAIL, DHCPSRV_MEMFILE_GET_HOSTNAME6)
|
||||
.arg(hostname);
|
||||
|
||||
Lease6Collection collection;
|
||||
void
|
||||
Memfile_LeaseMgr::getLeases6Internal(const std::string& hostname,
|
||||
Lease6Collection& collection) const {
|
||||
const Lease6StorageHostnameIndex& idx = storage6_.get<HostnameIndexTag>();
|
||||
std::pair<Lease6StorageHostnameIndex::const_iterator,
|
||||
Lease6StorageHostnameIndex::const_iterator> l =
|
||||
@ -1219,8 +1211,6 @@ Memfile_LeaseMgr::getLeases6(const std::string& hostname) const {
|
||||
for (auto lease = l.first; lease != l.second; ++lease) {
|
||||
collection.push_back(Lease6Ptr(new Lease6(**lease)));
|
||||
}
|
||||
|
||||
return (collection);
|
||||
}
|
||||
|
||||
Lease6Collection
|
||||
|
Loading…
x
Reference in New Issue
Block a user