Home Help Center

Adding To Evictor Enough To Save

acbellacbell Member Andrew BellOrganization: Iowa State UniversityProject: National Resources Inventory ✭✭
Hi,

Am I guaranteed that adding an object to a freeze evictor will force the object to get written? Are there any cases where I have to add the object to the evictor and THEN call a mutating operation to guarantee the write? Has anything changed in this between 2.1.2 and 3.0.1?

Thanks as always,

Comments

  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi Andrew,

    Adding a servant to the Freeze Evictor adds this object to the "modified list": it will be saved with the other objects on that list by the saving thread.
    You don't need to update a new object to put it on that list. This behavior did not change between 2.1.x and 3.0.x.

    Cheers,
    Bernard
  • acbellacbell Member Andrew BellOrganization: Iowa State UniversityProject: National Resources Inventory ✭✭
    Thanks

    Thanks for the info.
Sign In or Register to comment.