From e84c4a8c75a0718b823606a6a78654786347fb9f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 10 Apr 2018 20:55:15 +0100 Subject: C++17 and ICE 3.7 Extend the standard DB::ConnectionPool now that it's been split into two more useful components. --- icetray/dryice/mockPool.cpp | 2 +- icetray/dryice/mockPool.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'icetray/dryice') diff --git a/icetray/dryice/mockPool.cpp b/icetray/dryice/mockPool.cpp index 4919cfb..ac73dad 100644 --- a/icetray/dryice/mockPool.cpp +++ b/icetray/dryice/mockPool.cpp @@ -4,7 +4,7 @@ namespace IceTray { MockPool::MockPool(const std::string & name, const std::string &, const Ice::PropertiesPtr & p) : - DatabasePool( + DB::BasicConnectionPool( p->getPropertyAsIntWithDefault(name + ".Database.PoolMax", 10), p->getPropertyAsIntWithDefault(name + ".Database.PoolKeep", 2)), name(name) diff --git a/icetray/dryice/mockPool.h b/icetray/dryice/mockPool.h index fba168a..0e7b49b 100644 --- a/icetray/dryice/mockPool.h +++ b/icetray/dryice/mockPool.h @@ -1,12 +1,12 @@ #ifndef ICETRAY_MOCKPOOL_H #define ICETRAY_MOCKPOOL_H -#include "database.h" +#include #include #include namespace IceTray { - class MockPool : public DatabasePool { + class MockPool : public DB::BasicConnectionPool { public: MockPool(const std::string & name, const std::string &, const Ice::PropertiesPtr & p); -- cgit v1.2.3