Browse Source

[3681_rebase] Changes after review

 - Indent fixed
 - Missing parameter descriptions added
Tomek Mrugalski 9 years ago
parent
commit
278a4e3117

+ 2 - 3
src/lib/dhcpsrv/database_connection.h

@@ -90,12 +90,11 @@ public:
     /// @param parameters Database access parameters (output of "parse").
     /// @param parameters Database access parameters (output of "parse").
     ///
     ///
     /// @return Redacted database access string.
     /// @return Redacted database access string.
-    static std::string redactedAccessString(
-            const DatabaseConnection::ParameterMap& parameters);
+    static std::string redactedAccessString(const ParameterMap& parameters);
 
 
 protected:
 protected:
 
 
-    /// @brief list of parameters passed in dbconfig
+    /// @brief List of parameters passed in dbconfig
     ///
     ///
     /// That will be mostly used for storing database name, username,
     /// That will be mostly used for storing database name, username,
     /// password and other parameters required for DB access. It is not
     /// password and other parameters required for DB access. It is not

+ 2 - 0
src/lib/dhcpsrv/mysql_connection.h

@@ -173,6 +173,8 @@ public:
     ///
     ///
     /// Creates the prepared statements for all of the SQL statements used
     /// Creates the prepared statements for all of the SQL statements used
     /// by the MySQL backend.
     /// by the MySQL backend.
+    /// @param tagged_statements an array of statements to be compiled
+    /// @param num_statements number of statements in tagged_statements
     ///
     ///
     /// @throw isc::dhcp::DbOperationError An operation on the open database has
     /// @throw isc::dhcp::DbOperationError An operation on the open database has
     ///        failed.
     ///        failed.

+ 2 - 4
src/lib/dhcpsrv/mysql_lease_mgr.h

@@ -432,9 +432,6 @@ public:
     };
     };
 
 
 private:
 private:
-    /// @brief MySQL connection
-    MySqlConnection conn_;
-
     /// @brief Add Lease Common Code
     /// @brief Add Lease Common Code
     ///
     ///
     /// This method performs the common actions for both flavours (V4 and V6)
     /// This method performs the common actions for both flavours (V4 and V6)
@@ -611,7 +608,8 @@ private:
     boost::scoped_ptr<MySqlLease4Exchange> exchange4_; ///< Exchange object
     boost::scoped_ptr<MySqlLease4Exchange> exchange4_; ///< Exchange object
     boost::scoped_ptr<MySqlLease6Exchange> exchange6_; ///< Exchange object
     boost::scoped_ptr<MySqlLease6Exchange> exchange6_; ///< Exchange object
 
 
-
+    /// @brief MySQL connection
+    MySqlConnection conn_;
 };
 };
 
 
 }; // end of isc::dhcp namespace
 }; // end of isc::dhcp namespace