// MySqlLeaseContext Constructor
-MySqlLeaseContext::MySqlLeaseContext(const DatabaseConnection::ParameterMap& parameters) : conn_(parameters) {
+MySqlLeaseContext::
+MySqlLeaseContext(const DatabaseConnection::ParameterMap& parameters)
+ : conn_(parameters) {
}
// MySqlLeaseContextAlloc Constructor and Destructor
-MySqlLeaseMgr::MySqlLeaseContextAlloc::MySqlLeaseContextAlloc(const MySqlLeaseMgr& mgr)
- : ctx_(), mgr_(mgr) {
+MySqlLeaseMgr::MySqlLeaseContextAlloc::
+MySqlLeaseContextAlloc(const MySqlLeaseMgr& mgr) : ctx_(), mgr_(mgr) {
if (MultiThreadingMgr::instance().getMode()) {
{
lock_guard<mutex> lock(mgr_.pool_->mutex_);
if (mgr_.pool_->pool_.empty()) {
isc_throw(Unexpected, "No available MySQL lease context?!");
}
- ctx_ = mgr_.pool_->pool_[0];
+ ctx_ = mgr_.pool_->pool_.back();
}
}