Commit 60bf0923 authored by Jeremy Hylton's avatar Jeremy Hylton

Frontport changes made on 3.1 release branch just prior to release.

parent 5f274be4
...@@ -41,11 +41,6 @@ ZEO Client Cache ...@@ -41,11 +41,6 @@ ZEO Client Cache
and so on. and so on.
As of ZEO 2.0 beta 2, the above algorithm is augmented as follows.
When a cache load finds a hit in the "old" cache file, the data is
copied to the "current" cache file. This appears to improve the hit
rate.
Persistent cache files are created in the directory named in the Persistent cache files are created in the directory named in the
'var' argument to the ClientStorage (see ClientStorage.txt) or in 'var' argument to the ClientStorage (see ClientStorage.txt) or in
the 'var' subdirectory of the directory given by the INSTANCE_HOME the 'var' subdirectory of the directory given by the INSTANCE_HOME
......
...@@ -21,4 +21,4 @@ ZEO's home on the web is ...@@ -21,4 +21,4 @@ ZEO's home on the web is
""" """
version = "2.0b2" version = "2.0b3"
...@@ -556,7 +556,7 @@ class TransactionalUndoStorage: ...@@ -556,7 +556,7 @@ class TransactionalUndoStorage:
orig = [] orig = []
for i in range(BATCHES): for i in range(BATCHES):
t = Transaction() t = Transaction()
tid = p64(i+1) tid = p64(i)
s.tpc_begin(t, tid) s.tpc_begin(t, tid)
for j in range(OBJECTS): for j in range(OBJECTS):
oid = s.new_oid() oid = s.new_oid()
...@@ -602,7 +602,7 @@ class TransactionalUndoStorage: ...@@ -602,7 +602,7 @@ class TransactionalUndoStorage:
txn = iter[offset] txn = iter[offset]
offset += 1 offset += 1
tid = p64(i + 1) tid = p64(i)
eq(txn.tid, tid) eq(txn.tid, tid)
L1 = [(rec.oid, rec.serial, rec.data_txn) for rec in txn] L1 = [(rec.oid, rec.serial, rec.data_txn) for rec in txn]
...@@ -621,7 +621,7 @@ class TransactionalUndoStorage: ...@@ -621,7 +621,7 @@ class TransactionalUndoStorage:
offset += 1 offset += 1
# The undos are performed in reverse order. # The undos are performed in reverse order.
otid = p64(BATCHES - i) otid = p64(BATCHES - 1 - i)
L1 = [(rec.oid, rec.data_txn) for rec in txn] L1 = [(rec.oid, rec.data_txn) for rec in txn]
L2 = [(oid, otid) for _tid, oid, revid in orig L2 = [(oid, otid) for _tid, oid, revid in orig
if _tid == otid] if _tid == otid]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment