rework commit thread & some connection pool borrowing issues
This commit is contained in:
parent
27e3597d5e
commit
ac0dc7844f
2 changed files with 19 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue