MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / cleanupAttachment

Method cleanupAttachment

src/jrd/Monitoring.cpp:1637–1652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1635
1636
1637void Monitoring::cleanupAttachment(thread_db* tdbb)
1638{
1639 const auto dbb = tdbb->getDatabase();
1640 const auto attachment = tdbb->getAttachment();
1641
1642 if (attachment->att_flags & ATT_monitor_init)
1643 {
1644 attachment->att_flags &= ~ATT_monitor_init;
1645
1646 if (dbb->dbb_monitoring_data)
1647 {
1648 MonitoringData::Guard guard(dbb->dbb_monitoring_data);
1649 dbb->dbb_monitoring_data->cleanup(attachment->att_attachment_id);
1650 }
1651 }
1652}

Callers

nothing calls this directly

Calls 3

getDatabaseMethod · 0.80
getAttachmentMethod · 0.45
cleanupMethod · 0.45

Tested by

no test coverage detected