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

Method lockRecord

src/jrd/recsrc/RecordSource.cpp:252–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252WriteLockResult RecordStream::lockRecord(thread_db* tdbb) const
253{
254 Request* const request = tdbb->getRequest();
255 jrd_tra* const transaction = request->req_transaction;
256
257 record_param* const rpb = &request->req_rpb[m_stream];
258 jrd_rel* const relation = rpb->rpb_relation;
259
260 fb_assert(relation && !relation->rel_view_rse);
261
262 RLCK_reserve_relation(tdbb, transaction, relation, true);
263
264 return VIO_writelock(tdbb, rpb, transaction);
265}
266
267void RecordStream::markRecursive()
268{

Callers

nothing calls this directly

Calls 3

RLCK_reserve_relationFunction · 0.85
VIO_writelockFunction · 0.85
getRequestMethod · 0.45

Tested by

no test coverage detected