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

Method EngineCheckout

src/jrd/jrd.h:1138–1153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 5

getAttachmentMethod · 0.45
getStableMethod · 0.45
hasDataMethod · 0.45
leaveMethod · 0.45
getSyncMethod · 0.45

Tested by

no test coverage detected