2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[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.
This commit is contained in:
Stephen Morris
2012-12-07 12:25:40 +00:00
parent fca3132940
commit 1c59115d79
2 changed files with 3 additions and 4 deletions

View File

@@ -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.

View File

@@ -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.