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

Method enterDtc

src/yvalve/DistributedTransaction.cpp:483–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483DTransaction* DTransaction::enterDtc(CheckStatusWrapper* status)
484{
485 try
486 {
487 status->init();
488
489 WriteLockGuard guard(rwLock, FB_FUNCTION);
490
491 RefPtr<DTransaction> traCopy(FB_NEW DTransaction(sub));
492 sub.clear();
493 release();
494
495 traCopy->addRef();
496 return traCopy;
497 }
498 catch (const Exception& ex)
499 {
500 ex.stuffException(status);
501 }
502
503 return NULL;
504}
505
506DTransaction::~DTransaction()
507{

Callers 1

joinMethod · 0.45

Calls 5

releaseFunction · 0.70
initMethod · 0.45
clearMethod · 0.45
addRefMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected