mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 05:55:28 +00:00
[#1542] fix lease4-update on multithreaded v4
This commit is contained in:
@@ -1819,7 +1819,7 @@ LeaseCmdsImpl::lease4UpdateHandler(CalloutHandle& handle) {
|
||||
// Try to avoid a race.
|
||||
ResourceHandler4 resource_handler;
|
||||
use_cs = !resource_handler.tryLock4(lease4->addr_);
|
||||
if (use_cs) {
|
||||
if (!use_cs) {
|
||||
added = addOrUpdate4(lease4, force_create);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user