diff options
author | Mark Spruiell <mes@zeroc.com> | 2003-04-08 16:10:41 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2003-04-08 16:10:41 +0000 |
commit | 55332a5cbee9b31601991614283cc3a4b7a8633d (patch) | |
tree | 2cfcb737706174c890ffb60c8fb110890d0b9e6d /cpp/src/IcePack/AdapterFactory.cpp | |
parent | fix (diff) | |
download | ice-55332a5cbee9b31601991614283cc3a4b7a8633d.tar.bz2 ice-55332a5cbee9b31601991614283cc3a4b7a8633d.tar.xz ice-55332a5cbee9b31601991614283cc3a4b7a8633d.zip |
merging changes from freeze_strategy branch
Diffstat (limited to 'cpp/src/IcePack/AdapterFactory.cpp')
-rw-r--r-- | cpp/src/IcePack/AdapterFactory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IcePack/AdapterFactory.cpp b/cpp/src/IcePack/AdapterFactory.cpp index 455db93b0e2..fe57d70957b 100644 --- a/cpp/src/IcePack/AdapterFactory.cpp +++ b/cpp/src/IcePack/AdapterFactory.cpp @@ -16,6 +16,7 @@ #include <IceUtil/UUID.h> #include <Freeze/DB.h> #include <Freeze/Evictor.h> +#include <Freeze/Strategy.h> #include <IcePack/AdapterFactory.h> #include <IcePack/AdapterI.h> #include <IcePack/TraceLevels.h> @@ -33,7 +34,7 @@ IcePack::AdapterFactory::AdapterFactory(const Ice::ObjectAdapterPtr& adapter, // Create and install the freeze evictor for standalone adapter objects. // Freeze::DBPtr dbAdapters = dbEnv->openDB("adapters", true); - _evictor = dbAdapters->createEvictor(Freeze::SaveUponEviction); + _evictor = dbAdapters->createEvictor(dbAdapters->createEvictionStrategy()); _evictor->setSize(1000); // |