rework commit thread & some connection pool borrowing issues

This commit is contained in:
Grant Limberg 2021-10-05 09:25:24 -07:00
parent 27e3597d5e
commit ac0dc7844f
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
2 changed files with 19 additions and 9 deletions

View file

@ -95,7 +95,7 @@ public:
if(m_pool.size()==0){
if ((m_pool.size() + m_borrowed.size()) <= m_maxPoolSize) {
if ((m_pool.size() + m_borrowed.size()) < m_maxPoolSize) {
try {
std::shared_ptr<Connection> conn = m_factory->create();
m_borrowed.insert(conn);