Skip to content
Snippets Groups Projects
Commit 7f982ed6 authored by Steven Murray's avatar Steven Murray
Browse files

Renamed ConnPool::m_nbConns to m_maxNbConns

parent 96eb93bc
No related branches found
No related tags found
No related merge requests found
......@@ -28,11 +28,11 @@ namespace rdbms {
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
ConnPool::ConnPool(ConnFactory &connFactory, const uint64_t nbConns):
ConnPool::ConnPool(ConnFactory &connFactory, const uint64_t maxNbConns):
m_connFactory(connFactory),
m_nbConns(nbConns) {
m_maxNbConns(maxNbConns) {
try {
createConns(m_nbConns);
createConns(m_maxNbConns);
} catch(exception::Exception &ex) {
throw exception::Exception(std::string(__FUNCTION__) + " failed: " + ex.getMessage().str());
}
......
......@@ -40,9 +40,10 @@ public:
* Constructor.
*
* @param connFactory The database connection factory.
* @param nbConns The number of database connections within the pool.
* @param maxNbConns The maximum number of database connections within the
* pool.
*/
ConnPool(ConnFactory &connFactory, const uint64_t nbConns);
ConnPool(ConnFactory &connFactory, const uint64_t maxNbConns);
/**
* Takes a connection from the pool.
......@@ -78,9 +79,9 @@ private:
ConnFactory &m_connFactory;
/**
* The number of database connections within the pool.
* The maximum mnumber of database connections within the pool.
*/
uint64_t m_nbConns;
uint64_t m_maxNbConns;
/**
* Mutex used to serialize access to the database connections within the pool.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment