Cleanup deleted blocks

This commit is contained in:
Sebastian Messmer 2015-04-15 21:44:35 +02:00
parent 859703a67b
commit 74381f2cdd

View File

@ -133,6 +133,7 @@ void CachingStore<Resource, CachedResourceRef, Key>::remove(const Key &key, std:
//Wait for last resource user to release it
auto resourceToRemove = insertResult.first->second.get_future().get();
_resourcesToRemove.erase(key); //TODO Is this erase causing a race condition?
_baseStore->removeFromBaseStore(std::move(resourceToRemove));
}