mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Fix missing synchronization of the shared monitoring data
This commit is contained in:
parent
833efbf489
commit
bedf271e1f
@ -507,7 +507,10 @@ MonitoringSnapshot::MonitoringSnapshot(thread_db* tdbb, MemoryPool& pool)
|
||||
if (LCK_lock(tdbb, lock, LCK_EX, LCK_NO_WAIT))
|
||||
{
|
||||
LCK_release(tdbb, lock);
|
||||
|
||||
MonitoringData::Guard guard(dbb->dbb_monitoring_data);
|
||||
dbb->dbb_monitoring_data->cleanup(attId);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -541,7 +544,6 @@ MonitoringSnapshot::MonitoringSnapshot(thread_db* tdbb, MemoryPool& pool)
|
||||
{ // scope for the guard
|
||||
|
||||
MonitoringData::Guard guard(dbb->dbb_monitoring_data);
|
||||
|
||||
dbb->dbb_monitoring_data->read(userNamePtr, temp_space);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user