| 1108 | } |
| 1109 | |
| 1110 | void 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 | |
| 1131 | void ConnectionsPool::setMaxCount(ULONG val) |
| 1132 | { |
no test coverage detected