2
0
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:
Andrei Pavel
2020-11-14 19:36:40 +02:00
parent f83c4980aa
commit bd0cd3963e

View File

@@ -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);
}
}