[Zodb-checkins] SVN: ZODB/branches/jim-simulation/src/ZEO/cache.py Fixed bug in encoding data lengths. Need test before merging to
jim at zope.com
Fri Jun 4 19:04:27 EDT 2010
Log message for revision 113121:
Fixed bug in encoding data lengths. Need test before merging to
--- ZODB/branches/jim-simulation/src/ZEO/cache.py 2010-06-04 23:04:25 UTC (rev 113120)
+++ ZODB/branches/jim-simulation/src/ZEO/cache.py 2010-06-04 23:04:27 UTC (rev 113121)
@@ -750,7 +750,7 @@
# The first hex digit shows the operation, the second the outcome.
# This method has been carefully tuned to be as fast as possible.
# Note: when tracing is disabled, this method is hidden by a dummy.
- encoded = (dlen + 255) & 0x7fffff00 | code
+ encoded = (dlen << 8) + code
if tid is None:
tid = z64
if end_tid is None:
More information about the Zodb-checkins