]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[960-mysql-connection-pool] Addressed cosmetic change request
authorFrancis Dupont <fdupont@isc.org>
Mon, 18 Nov 2019 13:57:06 +0000 (14:57 +0100)
committerFrancis Dupont <fdupont@isc.org>
Mon, 18 Nov 2019 13:57:06 +0000 (14:57 +0100)
src/lib/dhcpsrv/mysql_lease_mgr.cc
src/lib/dhcpsrv/mysql_lease_mgr.h

index dcaf487203ec1ef2bd39aafa734a8cb6d7fb2e31..0a6fb85d491ae21e27b7cf1ec0f3f1d47442f664 100644 (file)
@@ -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<mutex> lock(mgr_.pool_->mutex_);
index 2d710179a7a3ea368145753360e9c96675dce752..68fc45228eabfd8d26ccae7daf72f87e32690b6a 100644 (file)
@@ -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<MySqlLeaseContextPtr> 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.