From: Francis Dupont Date: Mon, 18 Nov 2019 13:57:06 +0000 (+0100) Subject: [960-mysql-connection-pool] Addressed cosmetic change request X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87403dab3ec07fde2d3c1bae59b010008fb5bca0;p=thirdparty%2Fkea.git [960-mysql-connection-pool] Addressed cosmetic change request --- diff --git a/src/lib/dhcpsrv/mysql_lease_mgr.cc b/src/lib/dhcpsrv/mysql_lease_mgr.cc index dcaf487203..0a6fb85d49 100644 --- a/src/lib/dhcpsrv/mysql_lease_mgr.cc +++ b/src/lib/dhcpsrv/mysql_lease_mgr.cc @@ -1692,8 +1692,8 @@ MySqlLeaseContext(const DatabaseConnection::ParameterMap& 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 lock(mgr_.pool_->mutex_); diff --git a/src/lib/dhcpsrv/mysql_lease_mgr.h b/src/lib/dhcpsrv/mysql_lease_mgr.h index 2d710179a7..68fc45228e 100644 --- a/src/lib/dhcpsrv/mysql_lease_mgr.h +++ b/src/lib/dhcpsrv/mysql_lease_mgr.h @@ -30,13 +30,13 @@ class MySqlLease6Exchange; /// @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 { public: /// @brief Constructor /// - /// @param parameters See MySqlLeaseMgr contructor. + /// @param parameters See MySqlLeaseMgr constructor. MySqlLeaseContext(const db::DatabaseConnection::ParameterMap& parameters); /// The exchange objects are used for transfer of data to/from the database. @@ -62,7 +62,7 @@ public: /// @brief The vector of available contexts. std::vector pool_; - /// @brief The mjutex to protect pool access. + /// @brief The mutex to protect pool access. std::mutex mutex_; }; @@ -104,7 +104,7 @@ public: /// #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. /// @throw isc::dhcp::NoDatabaseName Mandatory database name not given.