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

Function TRA_release_request_snapshot

src/jrd/tra.cpp:182–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181
182void TRA_release_request_snapshot(Jrd::thread_db* tdbb, Jrd::Request* request)
183{
184 // This function is called whenever request has completed processing
185 // in a transaction (normally or abnormally)
186
187 if (!request->req_snapshot.m_owner)
188 return;
189
190 if (request->req_snapshot.m_number)
191 {
192 tdbb->getDatabase()->dbb_tip_cache->endSnapshot(tdbb, request->req_snapshot.m_handle,
193 request->req_attachment->att_attachment_id);
194 request->req_snapshot.m_handle = 0;
195 request->req_snapshot.m_number = 0;
196 }
197
198 request->req_snapshot.m_owner = nullptr;
199}
200
201
202void TRA_attach_request(Jrd::jrd_tra* transaction, Jrd::Request* request)

Callers 2

EXE_unwindFunction · 0.85
EXE_looperFunction · 0.85

Calls 2

endSnapshotMethod · 0.80
getDatabaseMethod · 0.80

Tested by

no test coverage detected