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->reclaimTable(std::atomic_load(&_tableShrdPtr));
|
||||||
|
_metadata.writeLock();
|
||||||
|
_metadata.changeTable(0);
|
||||||
|
_metadata.writeUnlock();
|
||||||
_manager->unregisterCache(_id);
|
_manager->unregisterCache(_id);
|
||||||
_table.store(nullptr, std::memory_order_relaxed);
|
_table.store(nullptr, std::memory_order_relaxed);
|
||||||
}
|
}
|
||||||
_metadata.writeLock();
|
|
||||||
_metadata.changeTable(0);
|
|
||||||
_metadata.writeUnlock();
|
|
||||||
|
|
||||||
_taskLock.writeUnlock();
|
_taskLock.writeUnlock();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue