diff options
author | Shawn Routhier <sar@isc.org> | 2016-03-17 15:38:28 +0100 |
---|---|---|
committer | Shawn Routhier <sar@isc.org> | 2016-03-17 15:38:28 +0100 |
commit | 6f0b3a5c036128ef9c4307797e4094b79b233c64 (patch) | |
tree | fd34d5eafd7b8742fd935c7296ed2f16f95848ba /src/lib/dhcpsrv/alloc_engine.cc | |
parent | [4309] Fixed Coverity issue 1341466e in alloc_engine.cc (diff) | |
download | kea-6f0b3a5c036128ef9c4307797e4094b79b233c64.tar.xz kea-6f0b3a5c036128ef9c4307797e4094b79b233c64.zip |
[trac4309] Fix some typos
Diffstat (limited to '')
-rw-r--r-- | src/lib/dhcpsrv/alloc_engine.cc | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/lib/dhcpsrv/alloc_engine.cc b/src/lib/dhcpsrv/alloc_engine.cc index 41dc5169f5..2b09fcb0aa 100644 --- a/src/lib/dhcpsrv/alloc_engine.cc +++ b/src/lib/dhcpsrv/alloc_engine.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2012-2016 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -1628,20 +1628,20 @@ AllocEngine::reclaimExpiredLease(const Lease6Ptr& lease, if (!skipped) { // Generate removal name change request for D2, if required. - // This will return immediatelly if the DNS wasn't updated + // This will return immediately if the DNS wasn't updated // when the lease was created. queueNCR(CHG_REMOVE, lease); // Let's check if the lease that just expired is in DECLINED state. - // If it is, we need to conduct couple extra steps. + // If it is, we need to perform a couple extra steps. bool remove_lease = (reclaim_mode == DB_RECLAIM_REMOVE); if (lease->state_ == Lease::STATE_DECLINED) { - // Do extra steps required for declined lease reclaimation: + // Do extra steps required for declined lease reclamation: // - call the recover hook // - bump decline-related stats // - log separate message - // There's no point in keeping declined lease after its - // reclaimation. Declined lease doesn't have any client + // There's no point in keeping a declined lease after its + // reclamation. A declined lease doesn't have any client // identifying information anymore. So we'll flag it for // removal unless the hook has set the skip flag. remove_lease = reclaimDeclined(lease); @@ -1723,15 +1723,15 @@ AllocEngine::reclaimExpiredLease(const Lease4Ptr& lease, queueNCR(CHG_REMOVE, lease); // Let's check if the lease that just expired is in DECLINED state. - // If it is, we need to conduct couple extra steps. + // If it is, we need to perform a couple extra steps. bool remove_lease = (reclaim_mode == DB_RECLAIM_REMOVE); if (lease->state_ == Lease::STATE_DECLINED) { - // Do extra steps required for declined lease reclaimation: + // Do extra steps required for declined lease reclamation: // - call the recover hook // - bump decline-related stats // - log separate message - // There's no point in keeping declined lease after its - // reclaimation. Declined lease doesn't have any client + // There's no point in keeping a declined lease after its + // reclamation. A declined lease doesn't have any client // identifying information anymore. So we'll flag it for // removal unless the hook has set the skip flag. remove_lease = reclaimDeclined(lease); @@ -1747,6 +1747,8 @@ AllocEngine::reclaimExpiredLease(const Lease4Ptr& lease, } } + // Update statistics. + // Decrease number of assigned addresses. StatsMgr::instance().addValue(StatsMgr::generateName("subnet", lease->subnet_id_, |