2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-02 23:15:20 +00:00

[960-mysql-connection-pool] Addressed cosmetic change request

This commit is contained in:
Francis Dupont
2019-11-18 14:57:06 +01:00
parent a28a5773a3
commit 06a8a04e06
2 changed files with 6 additions and 6 deletions

View File

@@ -1692,8 +1692,8 @@ MySqlLeaseContext(const DatabaseConnection::ParameterMap& parameters)
// MySqlLeaseContextAlloc Constructor and Destructor // MySqlLeaseContextAlloc Constructor and Destructor
MySqlLeaseMgr::MySqlLeaseContextAlloc:: MySqlLeaseMgr::MySqlLeaseContextAlloc::MySqlLeaseContextAlloc(
MySqlLeaseContextAlloc(const MySqlLeaseMgr& mgr) : ctx_(), mgr_(mgr) { const MySqlLeaseMgr& mgr) : ctx_(), mgr_(mgr) {
if (MultiThreadingMgr::instance().getMode()) { if (MultiThreadingMgr::instance().getMode()) {
{ {
lock_guard<mutex> lock(mgr_.pool_->mutex_); lock_guard<mutex> lock(mgr_.pool_->mutex_);

View File

@@ -30,13 +30,13 @@ class MySqlLease6Exchange;
/// @brief MySQL Lease Context /// @brief MySQL Lease Context
/// ///
/// This class stores the per thread context for the manager pool. /// This class stores the thread context for the manager pool.
class MySqlLeaseContext { class MySqlLeaseContext {
public: public:
/// @brief Constructor /// @brief Constructor
/// ///
/// @param parameters See MySqlLeaseMgr contructor. /// @param parameters See MySqlLeaseMgr constructor.
MySqlLeaseContext(const db::DatabaseConnection::ParameterMap& parameters); MySqlLeaseContext(const db::DatabaseConnection::ParameterMap& parameters);
/// The exchange objects are used for transfer of data to/from the database. /// The exchange objects are used for transfer of data to/from the database.
@@ -62,7 +62,7 @@ public:
/// @brief The vector of available contexts. /// @brief The vector of available contexts.
std::vector<MySqlLeaseContextPtr> pool_; std::vector<MySqlLeaseContextPtr> pool_;
/// @brief The mjutex to protect pool access. /// @brief The mutex to protect pool access.
std::mutex mutex_; std::mutex mutex_;
}; };
@@ -104,7 +104,7 @@ public:
/// #brief Create a new context. /// #brief Create a new context.
/// ///
/// The database in opened withh all the SQL commands pre-compiled. /// The database in opened with all the SQL commands pre-compiled.
/// ///
/// @return A new (never null) context. /// @return A new (never null) context.
/// @throw isc::dhcp::NoDatabaseName Mandatory database name not given. /// @throw isc::dhcp::NoDatabaseName Mandatory database name not given.