]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1434] fixed rebase
authorRazvan Becheriu <razvan@isc.org>
Mon, 19 Oct 2020 12:58:34 +0000 (15:58 +0300)
committerRazvan Becheriu <razvan@isc.org>
Thu, 22 Oct 2020 14:45:55 +0000 (17:45 +0300)
src/lib/dhcpsrv/memfile_lease_mgr.cc

index ce419a521240b13cec645e1a314c43337fb41c89..729b605517c9e280aae376d492018715fa6021c2 100644 (file)
@@ -1428,6 +1428,8 @@ Memfile_LeaseMgr::updateLease4Internal(const Lease4Ptr& lease) {
         valid = false;
     } else if ((!persist) && (((*lease_it)->cltt_ != lease->old_cltt_) ||
         ((*lease_it)->valid_lft_ != lease->old_valid_lft_))) {
+        // For test purpose only: check that an actual database
+        // implementation action is atomic
         valid = false;
     }
 
@@ -1477,6 +1479,8 @@ Memfile_LeaseMgr::updateLease6Internal(const Lease6Ptr& lease) {
         valid = false;
     } else if ((!persist) && (((*lease_it)->cltt_ != lease->old_cltt_) ||
         ((*lease_it)->valid_lft_ != lease->old_valid_lft_))) {
+        // For test purpose only: check that an actual database
+        // implementation action is atomic
         valid = false;
     }