1
0
Fork 0

Fix issue with cache allocation statistics. (#10028)

This commit is contained in:
Dan Larkin-York 2019-09-18 04:45:35 -04:00 committed by Jan
parent 2f59a79435
commit a9df1907c3
1 changed files with 3 additions and 3 deletions

View File

@ -361,12 +361,12 @@ void Cache::shutdown() {
}
_manager->reclaimTable(std::atomic_load(&_tableShrdPtr));
_manager->unregisterCache(_id);
_table.store(nullptr, std::memory_order_relaxed);
}
_metadata.writeLock();
_metadata.changeTable(0);
_metadata.writeUnlock();
_manager->unregisterCache(_id);
_table.store(nullptr, std::memory_order_relaxed);
}
_taskLock.writeUnlock();
}