Rob Bloodgood wrote: >>So my question narrows down to : >>How to flush on disk the cache of a tied DBM (DB_File) structure >>in a way that any concurrent process accessing it in *read only* mode >>would automatically get the new values as soon as they >>are published (synchronisation) >> > > Isn't that just as simple as > > tied(%dbm_array)->sync();
I believe that's not enough, because the reader may read data during the write, resulting in corrupted data read. You have to add locking. see the DBM chapter in the guide. -- _____________________________________________________________________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/