mirror of https://gitee.com/bigwinds/arangodb
[3.5] Fix issue with cache allocation statistics. (#10029)
* Fix issue with cache allocation statistics. * updated CHANGELOG
This commit is contained in:
parent
db77840ef7
commit
50b1f72b25
|
@ -1,6 +1,9 @@
|
|||
v3.5.1 (XXXX-XX-XX)
|
||||
-------------------
|
||||
|
||||
* Fixed a bug in the edge cache's internal memory accounting, which led
|
||||
to the edge cache underreporting its current memory usage.
|
||||
|
||||
* Fixed "ArangoDB is not running in cluster mode" errors in active failover setups.
|
||||
This affected at least /_admin/cluster/health.
|
||||
|
||||
|
|
|
@ -361,12 +361,12 @@ void Cache::shutdown() {
|
|||
}
|
||||
|
||||
_manager->reclaimTable(std::atomic_load(&_tableShrdPtr));
|
||||
_metadata.writeLock();
|
||||
_metadata.changeTable(0);
|
||||
_metadata.writeUnlock();
|
||||
_manager->unregisterCache(_id);
|
||||
_table.store(nullptr, std::memory_order_relaxed);
|
||||
}
|
||||
_metadata.writeLock();
|
||||
_metadata.changeTable(0);
|
||||
_metadata.writeUnlock();
|
||||
|
||||
_taskLock.writeUnlock();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue