diff options
Diffstat (limited to 'cpp/src/IcePack/AdapterFactory.cpp')
-rw-r--r-- | cpp/src/IcePack/AdapterFactory.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/src/IcePack/AdapterFactory.cpp b/cpp/src/IcePack/AdapterFactory.cpp index fe57d70957b..e08fd404e0c 100644 --- a/cpp/src/IcePack/AdapterFactory.cpp +++ b/cpp/src/IcePack/AdapterFactory.cpp @@ -16,7 +16,7 @@ #include <IceUtil/UUID.h> #include <Freeze/DB.h> #include <Freeze/Evictor.h> -#include <Freeze/Strategy.h> +#include <Freeze/Initialize.h> #include <IcePack/AdapterFactory.h> #include <IcePack/AdapterI.h> #include <IcePack/TraceLevels.h> @@ -26,15 +26,14 @@ using namespace IcePack; IcePack::AdapterFactory::AdapterFactory(const Ice::ObjectAdapterPtr& adapter, const TraceLevelsPtr& traceLevels, - const Freeze::DBEnvironmentPtr& dbEnv) : + const string& envName) : _adapter(adapter), _traceLevels(traceLevels) { // // Create and install the freeze evictor for standalone adapter objects. // - Freeze::DBPtr dbAdapters = dbEnv->openDB("adapters", true); - _evictor = dbAdapters->createEvictor(dbAdapters->createEvictionStrategy()); + _evictor = Freeze::createEvictor(_adapter->getCommunicator(), envName, "adapter"); _evictor->setSize(1000); // |