Update node_data::remove to use new equals() method

- Update the call to equals() in node_data::remove() to match the new implementation
- Add unit test for node::remove() to catch this type of bug in the future
This commit is contained in:
bdutro
2015-04-01 16:58:44 -05:00
committed by Brett Dutro
parent 25c466a152
commit aa928b925b
2 changed files with 8 additions and 1 deletions

View File

@@ -133,7 +133,7 @@ inline bool node_data::remove(const Key& key, shared_memory_holder pMemory) {
return false;
for (node_map::iterator it = m_map.begin(); it != m_map.end(); ++it) {
if (equals(*it->first, key, pMemory)) {
if (it->first->equals(key, pMemory)) {
m_map.erase(it);
return true;
}