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

Method setTransaction

src/jrd/ExtEngineManager.cpp:662–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660}
661
662void ExtEngineManager::ExternalContextImpl::setTransaction(thread_db* tdbb)
663{
664 ITransaction* newTransaction = tdbb->getTransaction() ? tdbb->getTransaction()->getInterface(true) : NULL;
665
666 if (newTransaction == internalTransaction)
667 return;
668
669 releaseTransaction();
670 fb_assert(!externalTransaction && !internalTransaction);
671
672 if ((internalTransaction = newTransaction))
673 externalTransaction = MasterInterfacePtr()->registerTransaction(externalAttachment, internalTransaction);
674}
675
676IMaster* ExtEngineManager::ExternalContextImpl::getMaster()
677{

Callers 1

ContextManagerMethod · 0.45

Calls 4

MasterInterfacePtrClass · 0.85
getTransactionMethod · 0.45
getInterfaceMethod · 0.45
registerTransactionMethod · 0.45

Tested by

no test coverage detected