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

Function TRA_active_transactions

src/jrd/tra.cpp:274–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274bool TRA_active_transactions(thread_db* tdbb, Database* dbb)
275{
276/**************************************
277 *
278 * T R A _ a c t i v e _ t r a n s a c t i o n s
279 *
280 **************************************
281 *
282 * Functional description
283 * Determine if any transactions are active.
284 * Return true is active transactions; otherwise
285 * return false if no active transactions.
286 *
287 **************************************/
288 SET_TDBB(tdbb);
289
290 return LCK_query_data(tdbb, LCK_tra, LCK_ANY) ? true : false;
291}
292
293bool TRA_cleanup(thread_db* tdbb)
294{

Callers 1

SHUT_databaseFunction · 0.85

Calls 2

SET_TDBBFunction · 0.85
LCK_query_dataFunction · 0.85

Tested by

no test coverage detected