On Tue, 2003-08-19 at 15:17, Simone Piunno wrote: > On Tuesday 19 August 2003 04:08, Barry Warsaw wrote: > > > > > After power was restored and the machine came up, Mailman (2.1.2) is > > > > now spitting out errors: > > > > File "/usr/local/mailman/Mailman/Queue/Switchboard.py", line 246, in > > > > _ext_read dict = marshal.load(fp) > > > > ValueError: bad marshal data > > > > Hmm, weird. The switchboard is written such that this shouldn't happen > > (i.e. you shouldn't get a corrupt message.db file). It's supposed to > > write the message first to .db.tmp and then rename it to .db in an > > atomic operation. > > ok, but how do you make sure the file is really on disk instead of, e.g., half > on disk and half on cache?
We close the file before we rename it. -Barry _______________________________________________ Mailman-Developers mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-developers