Merge pull request #22 from lachs0r/master
Fix crash in block cache aging
This commit is contained in:
commit
2e7d70edf3
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ class DataBlockCache {
|
|||
return;
|
||||
|
||||
auto& ba = mb.blocks;
|
||||
size += (ba.size() - std::count(ba.begin(), ba.end(), nullptr)) * factory.GetBlockSize();
|
||||
size -= (ba.size() - std::count(ba.begin(), ba.end(), nullptr)) * factory.GetBlockSize();
|
||||
|
||||
ba.clear();
|
||||
age.erase(mb.position);
|
||||
|
|
Loading…
Reference in a new issue