[mnet-devel] patch (incomplete): cleaning up persistent data storage

icepick at icepick.info icepick at icepick.info
Sun Feb 2 04:03:43 GMT 2003


On Fri, Jan 31, 2003 at 10:32:06PM -0500, Zooko wrote:
> 
> Because there is a bug in mesgen.py's use of bsddb which results in a database 
> that cannot be loaded, I've started a long-desired clean-up of all the 
> persistent storage stuff in mesgen.py and counterparties.py.  Actually I haven't 
> gotten to counterparties.py yet.  The patch is incomplete, so I won't commit it, 
> but I will append it to this message so interested people can see the kind of 
> thing that are changing.  I used context diff instead of unified diff because 
> for changes of this kind "side by side" comparison is better than "interlaced" 
> comparison.

This has nothing to do with the bug.  The bug has to do with post mortium
finalization not happening.  This is not happing due to the fact egtp is
inbetween two ways of doing PMF: <obj>.shutdown() and
<obj>.extres.__del__().

I've fixed mesgen.py so that it's PMF is called, that was the complex one
that used bsddb3.  Now I'm trying to fix the ones that use LazySaver as base
class.  LazySaver uses pickles.

The current MAIN branch will pop a wxPython window showing all refs to
TCPCommsHandler.  You can run this and see what I'm trying to get to
shutdown.

egtp.ListenerManager.ListenerManager
egtp.TCPCommsHandler.TCPCommsHandler
egtp.ListenerManager.ListenerManager

Are all hanging around and not doing their LazySaver.__del__ stuff.

myers


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel




More information about the Mnet-devel mailing list