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

Fix missing synchronization of the shared monitoring data

This commit is contained in:
Dmitry Yemanov 2024-10-29 11:27:18 +03:00
parent 1e08f5e80e
commit 5581ea6ff6

View File

@ -507,7 +507,10 @@ MonitoringSnapshot::MonitoringSnapshot(thread_db* tdbb, MemoryPool& pool)
if (LCK_lock(tdbb, lock, LCK_EX, LCK_NO_WAIT)) if (LCK_lock(tdbb, lock, LCK_EX, LCK_NO_WAIT))
{ {
LCK_release(tdbb, lock); LCK_release(tdbb, lock);
MonitoringData::Guard guard(dbb->dbb_monitoring_data);
dbb->dbb_monitoring_data->cleanup(attId); dbb->dbb_monitoring_data->cleanup(attId);
continue; continue;
} }
@ -541,7 +544,6 @@ MonitoringSnapshot::MonitoringSnapshot(thread_db* tdbb, MemoryPool& pool)
{ // scope for the guard { // scope for the guard
MonitoringData::Guard guard(dbb->dbb_monitoring_data); MonitoringData::Guard guard(dbb->dbb_monitoring_data);
dbb->dbb_monitoring_data->read(userNamePtr, temp_space); dbb->dbb_monitoring_data->read(userNamePtr, temp_space);
} }