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

Method detach

src/jrd/extds/ExtDS.cpp:776–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

774}
775
776void Connection::detach(thread_db* tdbb)
777{
778 const bool was_deleting = m_deleting;
779 m_deleting = true;
780
781 try
782 {
783 clearStatements(tdbb);
784 clearTransactions(tdbb);
785 m_deleting = was_deleting;
786 }
787 catch (...)
788 {
789 m_deleting = was_deleting;
790 throw;
791 }
792
793 fb_assert(m_used_stmts == 0);
794 fb_assert(m_transactions.getCount() == 0);
795
796 doDetach(tdbb);
797}
798
799Transaction* Connection::findTransaction(thread_db* tdbb, TraScope traScope) const
800{

Callers 3

ManagerMethod · 0.45
doDetachMethod · 0.45
deleteConnectionMethod · 0.45

Calls 1

getCountMethod · 0.45

Tested by

no test coverage detected