summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/phonebook/Collocated.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-05-25 13:45:57 +0000
committerBernard Normier <bernard@zeroc.com>2007-05-25 13:45:57 +0000
commit87066d75a2e1026f39e81aa9d5c555b571295b70 (patch)
treee6304ee267f05f065ac223dc17f02fc42e2e0b0d /cpp/demo/Freeze/phonebook/Collocated.cpp
parentadding listener for assertion failures (diff)
downloadice-87066d75a2e1026f39e81aa9d5c555b571295b70.tar.bz2
ice-87066d75a2e1026f39e81aa9d5c555b571295b70.tar.xz
ice-87066d75a2e1026f39e81aa9d5c555b571295b70.zip
Renamed existing Freeze Evictor to BackgroundSaveEvictor and added new
TransactionalEvictor
Diffstat (limited to 'cpp/demo/Freeze/phonebook/Collocated.cpp')
-rw-r--r--cpp/demo/Freeze/phonebook/Collocated.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/demo/Freeze/phonebook/Collocated.cpp b/cpp/demo/Freeze/phonebook/Collocated.cpp
index 43674a217f9..241b6280b3c 100644
--- a/cpp/demo/Freeze/phonebook/Collocated.cpp
+++ b/cpp/demo/Freeze/phonebook/Collocated.cpp
@@ -72,11 +72,11 @@ PhoneBookCollocated::run(int argc, char* argv[])
//
// When Freeze.Evictor.db.contacts.PopulateEmptyIndices is not 0
// and the Name index is empty, Freeze will traverse the database
- // to recreate the index during createEvictor(). Therefore the
+ // to recreate the index during createXXXEvictor(). Therefore the
// factories for the objects stored in evictor (contacts here)
- // must be registered before the call to createEvictor().
+ // must be registered before the call to createXXXEvictor().
//
- Freeze::EvictorPtr evictor = Freeze::createEvictor(adapter, _envName, "contacts", 0, indices);
+ Freeze::EvictorPtr evictor = Freeze::createBackgroundSaveEvictor(adapter, _envName, "contacts", 0, indices);
adapter->addServantLocator(evictor, "contact");
Ice::Int evictorSize = properties->getPropertyAsInt("EvictorSize");
@@ -88,7 +88,7 @@ PhoneBookCollocated::run(int argc, char* argv[])
//
// Completes the initialization of the contact factory. Note that ContactI/
// ContactFactoryI uses this evictor only when a Contact is destroyed,
- // which cannot happen during createEvictor().
+ // which cannot happen during createXXXEvictor().
//
contactFactory->setEvictor(evictor);