mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
Co-authored-by: Friedrich Wilckens <friedrich.wilckens@ingramcontent.com>
This commit is contained in:
parent
23463b2e55
commit
54d3c7b351
@ -78,7 +78,7 @@ Session SessionPool::get()
|
||||
customizeSession(newSession);
|
||||
|
||||
PooledSessionHolderPtr pHolder(new PooledSessionHolder(*this, newSession.impl()));
|
||||
_idleSessions.push_front(pHolder);
|
||||
_idleSessions.push_back(pHolder);
|
||||
++_nSessions;
|
||||
}
|
||||
else throw SessionPoolExhaustedException(_connector);
|
||||
@ -261,7 +261,7 @@ void SessionPool::putBack(PooledSessionHolderPtr pHolder)
|
||||
applySettings(pHolder->session());
|
||||
|
||||
pHolder->access();
|
||||
_idleSessions.push_front(pHolder);
|
||||
_idleSessions.push_back(pHolder);
|
||||
}
|
||||
else --_nSessions;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user