| 1136 | }; |
| 1137 | |
| 1138 | EngineCheckout(thread_db* tdbb, const char* from, Type type = REQUIRED) |
| 1139 | : m_tdbb(tdbb), m_from(from) |
| 1140 | { |
| 1141 | if (type != AVOID) |
| 1142 | { |
| 1143 | Attachment* const att = tdbb ? tdbb->getAttachment() : NULL; |
| 1144 | |
| 1145 | if (att) |
| 1146 | m_ref = att->getStable(); |
| 1147 | |
| 1148 | fb_assert(type == UNNECESSARY || m_ref.hasData()); |
| 1149 | |
| 1150 | if (m_ref.hasData()) |
| 1151 | m_ref->getSync()->leave(); |
| 1152 | } |
| 1153 | } |
| 1154 | |
| 1155 | EngineCheckout(Attachment* att, const char* from, Type type = REQUIRED) |
| 1156 | : m_tdbb(nullptr), m_from(from) |
nothing calls this directly
no test coverage detected