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

Method delConnection

src/jrd/extds/ExtDS.cpp:1110–1129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1108}
1109
1110void ConnectionsPool::delConnection(thread_db* tdbb, Connection* conn, bool destroy)
1111{
1112 { // scope
1113 MutexLockGuard guard(m_mutex, FB_FUNCTION);
1114 Data* item = conn->getPoolData();
1115 if (item->getConnPool() == this)
1116 removeFromPool(item, -1);
1117#ifdef EDS_DEBUG
1118 else
1119 {
1120 string str;
1121 str.printf("Item 0x%08X to delete from pool already not there", item);
1122 gds__log("Procces ID %d: %s", getpid(), str.c_str());
1123 }
1124#endif
1125 }
1126
1127 if (destroy)
1128 conn->getProvider()->releaseConnection(tdbb, *conn, false);
1129}
1130
1131void ConnectionsPool::setMaxCount(ULONG val)
1132{

Callers 2

getConnectionMethod · 0.80
releaseConnectionMethod · 0.80

Calls 6

getPoolDataMethod · 0.80
releaseConnectionMethod · 0.80
getConnPoolMethod · 0.45
printfMethod · 0.45
c_strMethod · 0.45
getProviderMethod · 0.45

Tested by

no test coverage detected