| 1635 | |
| 1636 | |
| 1637 | void 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 | } |
nothing calls this directly
no test coverage detected