BIND 10 trac2404, updated. 1c59115d79bc9a80821a72cfab2c1bb6a80137f2 [2404] Alter memfile "getName()" to return "memory"
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Dec 7 12:26:25 UTC 2012
The branch, trac2404 has been updated
via 1c59115d79bc9a80821a72cfab2c1bb6a80137f2 (commit)
from fca31329405278e34049e2e19982a82bc6fdf4f2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1c59115d79bc9a80821a72cfab2c1bb6a80137f2
Author: Stephen Morris <stephen at isc.org>
Date: Fri Dec 7 12:25:40 2012 +0000
[2404] Alter memfile "getName()" to return "memory"
This reflects the fact that at the moment, the data is stored in
memory and not in a backing file.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcpsrv/memfile_lease_mgr.h | 5 ++---
.../dhcpsrv/tests/memfile_lease_mgr_unittest.cc | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcpsrv/memfile_lease_mgr.h b/src/lib/dhcpsrv/memfile_lease_mgr.h
index d9b40e5..3f54edc 100644
--- a/src/lib/dhcpsrv/memfile_lease_mgr.h
+++ b/src/lib/dhcpsrv/memfile_lease_mgr.h
@@ -199,12 +199,11 @@ public:
/// @brief Returns backend name.
///
- /// As there is no variation, in this case we return the type of the
- /// backend.
+ /// For now, memfile can only store data in memory.
///
/// @return Name of the backend.
virtual std::string getName() const {
- return ("memfile");
+ return ("memory");
}
/// @brief Returns description of the backend.
diff --git a/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc b/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
index 0f026f2..b3f504f 100644
--- a/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
+++ b/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
@@ -53,7 +53,7 @@ TEST_F(MemfileLeaseMgrTest, getTypeAndName) {
boost::scoped_ptr<Memfile_LeaseMgr> lease_mgr(new Memfile_LeaseMgr(pmap));
EXPECT_EQ(std::string("memfile"), lease_mgr->getType());
- EXPECT_EQ(std::string("memfile"), lease_mgr->getName());
+ EXPECT_EQ(std::string("memory"), lease_mgr->getName());
}
// Checks that adding/getting/deleting a Lease6 object works.
More information about the bind10-changes
mailing list