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

Function TRA_init

src/jrd/tra.cpp:800–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

798
799
800void TRA_init(Jrd::Attachment* attachment)
801{
802/**************************************
803 *
804 * T R A _ i n i t
805 *
806 **************************************
807 *
808 * Functional description
809 * "Start" the system transaction.
810 *
811 **************************************/
812 Database* dbb = attachment->att_database;
813 CHECK_DBB(dbb);
814
815 MemoryPool* const pool = dbb->dbb_permanent;
816 jrd_tra* const trans = FB_NEW_POOL(*pool) jrd_tra(pool, &dbb->dbb_memory_stats, attachment, NULL);
817 attachment->setSysTransaction(trans);
818 trans->tra_flags |= TRA_system | TRA_ignore_limbo;
819}
820
821
822void TRA_invalidate(thread_db* tdbb, ULONG mask)

Callers 6

internalAttachMethod · 0.85
createDatabaseMethod · 0.85
cache_readerMethod · 0.85
cache_writerMethod · 0.85
garbage_collectorMethod · 0.85

Calls 3

CHECK_DBBFunction · 0.85
setSysTransactionMethod · 0.80
jrd_traClass · 0.70

Tested by

no test coverage detected