[rhmessaging-commits] rhmessaging commits: r3737 - store/trunk/cpp/tools.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Dec 7 14:35:29 EST 2009


Author: kpvdr
Date: 2009-12-07 14:35:29 -0500 (Mon, 07 Dec 2009)
New Revision: 3737

Modified:
   store/trunk/cpp/tools/jrnl.py
Log:
Minor updates to jrnl.py

Modified: store/trunk/cpp/tools/jrnl.py
===================================================================
--- store/trunk/cpp/tools/jrnl.py	2009-12-07 18:44:06 UTC (rev 3736)
+++ store/trunk/cpp/tools/jrnl.py	2009-12-07 19:35:29 UTC (rev 3737)
@@ -53,7 +53,7 @@
     formatData = staticmethod(formatData)
 
     #@staticmethod
-    def formatXid(xid, xidsize = None, uuidFormat = False):
+    def formatXid(xid, xidsize = None):
         if xid == None and xidsize != None:
             if xidsize > 0: raise Exception("Inconsistent XID size: xidsize=%d, xid=None" % xidsize)
             return ""
@@ -475,9 +475,9 @@
     def __str__(self):
         return self.report(True, True)
         
-    def add(self, fid, hdr):
+    def add(self, fid, hdr, lock = False):
         if hdr.rid in self.__map.keys(): raise Exception("ERROR: Duplicate rid to EnqMap: rid=0x%x" % hdr.rid)
-        self.__map[hdr.rid] = (fid, hdr, False)
+        self.__map[hdr.rid] = (fid, hdr, lock)
     
     def contains(self, rid):
         return rid in self.__map.keys()



More information about the rhmessaging-commits mailing list