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

Function make_transaction

src/remote/server/server.cpp:4760–4787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4758
4759
4760static Rtr* make_transaction (Rdb* rdb, ITransaction* iface)
4761{
4762/**************************************
4763 *
4764 * m a k e _ t r a n s a c t i o n
4765 *
4766 **************************************
4767 *
4768 * Functional description
4769 * Create a local transaction iface.
4770 *
4771 **************************************/
4772 Rtr* transaction = FB_NEW Rtr;
4773 transaction->rtr_rdb = rdb;
4774 transaction->rtr_iface = iface;
4775 if (transaction->rtr_id = rdb->rdb_port->get_id(transaction))
4776 {
4777 transaction->rtr_next = rdb->rdb_transactions;
4778 rdb->rdb_transactions = transaction;
4779 }
4780 else
4781 {
4782 delete transaction;
4783 transaction = NULL;
4784 }
4785
4786 return transaction;
4787}
4788
4789
4790static void ping_connection(rem_port* port, PACKET* send)

Callers 3

execute_immediateMethod · 0.70
execute_statementMethod · 0.70
start_transactionMethod · 0.70

Calls 1

get_idMethod · 0.45

Tested by

no test coverage detected