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

Function transaction_flush

src/jrd/tra.cpp:2872–2892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2870
2871
2872static void transaction_flush(thread_db* tdbb, USHORT flush_flag, TraNumber tra_number)
2873{
2874/**************************************
2875 *
2876 * t r a n s a c t i o n _ f l u s h
2877 *
2878 **************************************
2879 *
2880 * Functional description
2881 * Flush pages modified by user and/or system transaction.
2882 * Note, flush of user transaction also flushed pages,
2883 * changed by system transaction.
2884 *
2885 **************************************/
2886 fb_assert(flush_flag == FLUSH_TRAN || flush_flag == FLUSH_SYSTEM);
2887
2888 CCH_flush(tdbb, flush_flag, tra_number);
2889
2890 jrd_tra* const sysTran = tdbb->getAttachment()->getSysTransaction();
2891 sysTran->tra_flags &= ~TRA_write;
2892}
2893
2894
2895static void transaction_options(thread_db* tdbb,

Callers 3

TRA_commitFunction · 0.85
TRA_prepareFunction · 0.85
TRA_rollbackFunction · 0.85

Calls 3

CCH_flushFunction · 0.85
getSysTransactionMethod · 0.80
getAttachmentMethod · 0.45

Tested by

no test coverage detected