diff options
-rw-r--r-- | libdbpp/connectionPool.cpp | 4 | ||||
-rw-r--r-- | libdbpp/connectionPool.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libdbpp/connectionPool.cpp b/libdbpp/connectionPool.cpp index 67ea3ca..739f48e 100644 --- a/libdbpp/connectionPool.cpp +++ b/libdbpp/connectionPool.cpp @@ -19,13 +19,13 @@ namespace DB { } void - ConnectionPool::returnTestResource(const ConnectionCPtr & c) const + ConnectionPool::returnTestResource(Connection const * c) const { c->finish(); } void - ConnectionPool::testResource(const ConnectionCPtr & c) const + ConnectionPool::testResource(Connection const * c) const { c->ping(); } diff --git a/libdbpp/connectionPool.h b/libdbpp/connectionPool.h index 2300abb..3b1eed8 100644 --- a/libdbpp/connectionPool.h +++ b/libdbpp/connectionPool.h @@ -21,9 +21,9 @@ namespace DB { /// Create a new connection. ConnectionPtr createResource() const override; /// Ping a connection. - void returnTestResource(const ConnectionCPtr &) const override; + void returnTestResource(Connection const *) const override; /// Ping a connection. - void testResource(const ConnectionCPtr &) const override; + void testResource(Connection const *) const override; private: const ConnectionFactoryCPtr factory; |