[Mnet-devel] dead metatracker

zooko at zooko.com zooko at zooko.com
Tue May 11 15:34:42 BST 2004


Is your MT currently using the working_metatracker branch from CVS?  I just
committed a patch to that branch that might fix the bug (patch appended to this
mail), but I don't really know if it will help.

You could use CVS HEAD, a.k.a. v0.7.0.134-UNSTABLE.  I don't know if it would
work for MT service.

Actually, I *do* suggest that you try darcs.  There is a FreeBSD ports entry
for it, it is very easy to use.  Just do the FreeBSD install magic, then do

darcs get http://pion.zooko.com:10330/~zooko/mnet_new_mt

... and you have the version that I use to run my MT.

Regards,

Zooko

Index: egtp/mesgen.py
===================================================================
RCS file: /cvsroot/mnet/mnet_new/egtp/mesgen.py,v
retrieving revision 1.20
diff -p -u -r1.20 mesgen.py
--- egtp/mesgen.py	4 Nov 2003 23:10:25 -0000	1.20
+++ egtp/mesgen.py	11 May 2004 12:23:23 -0000
@@ -470,12 +470,7 @@ class SessionKeeper:
         counterparty_id = idlib.canonicalize(counterparty_id, 'broker')
 
         self.extres.db_env.nosyncerror_txn_checkpoint(MINS_BETWEEN_DB_CHECKPOINTS)
-        trans = self.extres.db_env.txn_begin()
-        try:
-            infopickle = self.extres.counterparty_map.get(counterparty_id, txn=trans)
-        finally:
-            if trans:
-                trans.commit()
+        infopickle = self.extres.counterparty_map.get(counterparty_id)
                 
         if infopickle is None:
             raise NoCounterpartyInfo, 'no counterparty information stored'



More information about the Mnet-devel mailing list