Author: gordonsim
Date: 2007-11-06 12:28:22 -0500 (Tue, 06 Nov 2007)
New Revision: 1247
Modified:
store/trunk/cpp/tests/persistence.py
Log:
Changed type of in-doubt field for dtx-coordination.recover
Modified: store/trunk/cpp/tests/persistence.py
===================================================================
--- store/trunk/cpp/tests/persistence.py 2007-11-06 17:09:01 UTC (rev 1246)
+++ store/trunk/cpp/tests/persistence.py 2007-11-06 17:28:22 UTC (rev 1247)
@@ -206,19 +206,7 @@
txc = self.xid('c')
txd = self.xid('d')
- indoubt = channel.dtx_coordination_recover().in_doubt
- #convert indoubt table to a list of xids (note: this will change for 0-10)
- data = indoubt["xids"]
- xids = []
- pos = 0
- while pos < len(data):
- size = unpack("!B", data[pos])[0]
- start = pos + 1
- end = start + size
- xid = data[start:end]
- xids.append(xid)
- pos = end
-
+ xids = channel.dtx_coordination_recover().in_doubt
if txc not in xids:
self.fail("Recovered xids not as expected. missing: %s" % (txc))
if txd not in xids: