mirror of https://gitee.com/bigwinds/arangodb
Fix issue with cache allocation statistics. (#10028)
This commit is contained in:
parent
2f59a79435
commit
a9df1907c3
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue