Commit 1c59115d authored by Stephen Morris's avatar Stephen Morris

[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.
parent fca31329
......@@ -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.
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment