8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00

Correct condition when mapped file of monitoring data should be removed.

This commit is contained in:
hvlad 2018-07-17 19:05:19 +03:00
parent 0d4d79ecfb
commit c4a2b69bfd

View File

@ -149,7 +149,7 @@ MonitoringData::~MonitoringData()
{
Guard guard(this);
if (shared_memory->getHeader()->used == sizeof(Header))
if (shared_memory->getHeader()->used == alignOffset(sizeof(Header)))
shared_memory->removeMapFile();
}