mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 15:35:17 +00:00
[#3648] drop packet on db race
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
#include <dhcpsrv/alloc_engine.h>
|
#include <dhcpsrv/alloc_engine.h>
|
||||||
#include <dhcpsrv/alloc_engine_log.h>
|
#include <dhcpsrv/alloc_engine_log.h>
|
||||||
#include <dhcpsrv/cfgmgr.h>
|
#include <dhcpsrv/cfgmgr.h>
|
||||||
|
#include <dhcpsrv/dhcpsrv_exceptions.h>
|
||||||
#include <dhcpsrv/dhcpsrv_log.h>
|
#include <dhcpsrv/dhcpsrv_log.h>
|
||||||
#include <dhcpsrv/host_mgr.h>
|
#include <dhcpsrv/host_mgr.h>
|
||||||
#include <dhcpsrv/host.h>
|
#include <dhcpsrv/host.h>
|
||||||
@@ -629,6 +630,9 @@ AllocEngine::allocateLeases6(ClientContext6& ctx) {
|
|||||||
return (leases);
|
return (leases);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} catch (const NoSuchLease&) {
|
||||||
|
throw;
|
||||||
|
|
||||||
} catch (const isc::Exception& e) {
|
} catch (const isc::Exception& e) {
|
||||||
|
|
||||||
// Some other error, return an empty lease.
|
// Some other error, return an empty lease.
|
||||||
@@ -2182,6 +2186,9 @@ AllocEngine::renewLeases6(ClientContext6& ctx) {
|
|||||||
|
|
||||||
return (leases);
|
return (leases);
|
||||||
|
|
||||||
|
} catch (const NoSuchLease&) {
|
||||||
|
throw;
|
||||||
|
|
||||||
} catch (const isc::Exception& e) {
|
} catch (const isc::Exception& e) {
|
||||||
|
|
||||||
// Some other error, return an empty lease.
|
// Some other error, return an empty lease.
|
||||||
@@ -3746,6 +3753,9 @@ AllocEngine::allocateLease4(ClientContext4& ctx) {
|
|||||||
ctx.new_lease_ = requestLease4(ctx);
|
ctx.new_lease_ = requestLease4(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} catch (const NoSuchLease&) {
|
||||||
|
throw;
|
||||||
|
|
||||||
} catch (const isc::Exception& e) {
|
} catch (const isc::Exception& e) {
|
||||||
// Some other error, return an empty lease.
|
// Some other error, return an empty lease.
|
||||||
LOG_ERROR(alloc_engine_logger, ALLOC_ENGINE_V4_ALLOC_ERROR)
|
LOG_ERROR(alloc_engine_logger, ALLOC_ENGINE_V4_ALLOC_ERROR)
|
||||||
|
Reference in New Issue
Block a user