Skip to content

Commit bedf271

Browse files
committed
Fix missing synchronization of the shared monitoring data
1 parent 833efbf commit bedf271

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/jrd/Monitoring.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,10 @@ MonitoringSnapshot::MonitoringSnapshot(thread_db* tdbb, MemoryPool& pool)
507507
if (LCK_lock(tdbb, lock, LCK_EX, LCK_NO_WAIT))
508508
{
509509
LCK_release(tdbb, lock);
510+
511+
MonitoringData::Guard guard(dbb->dbb_monitoring_data);
510512
dbb->dbb_monitoring_data->cleanup(attId);
513+
511514
continue;
512515
}
513516

@@ -541,7 +544,6 @@ MonitoringSnapshot::MonitoringSnapshot(thread_db* tdbb, MemoryPool& pool)
541544
{ // scope for the guard
542545

543546
MonitoringData::Guard guard(dbb->dbb_monitoring_data);
544-
545547
dbb->dbb_monitoring_data->read(userNamePtr, temp_space);
546548
}
547549

0 commit comments

Comments
 (0)