Fix apply table metadata updates

This commit is contained in:
Nik Bougalis
2015-07-20 12:36:49 -07:00
parent e18ba24670
commit e7a50e2a5a

View File

@@ -504,7 +504,7 @@ ApplyStateTable::getForMod (ReadView const& base,
auto iter = items_.find (key);
if (iter != items_.end ())
{
auto const& item = iter->second;
auto& item = iter->second;
if (item.first == Action::erase)
{
// VFALCO We need to think about throwing
@@ -513,6 +513,9 @@ ApplyStateTable::getForMod (ReadView const& base,
"Trying to thread to deleted node";
return nullptr;
}
// Track when a node gets modified only by metadata
if (item.first == Action::cache)
item.first = Action::modify;
return item.second;
}
{