Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
c598c862
Commit
c598c862
authored
Mar 12, 2004
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OK! Looks great.
parent
23e0b0c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/ZODB/tests/testmvcc.py
src/ZODB/tests/testmvcc.py
+5
-5
No files found.
src/ZODB/tests/testmvcc.py
View file @
c598c862
...
@@ -288,7 +288,7 @@ non-current revision to load.
...
@@ -288,7 +288,7 @@ non-current revision to load.
>>> cn1.getTransaction().commit()
>>> cn1.getTransaction().commit()
>>> r1["b"].value = 1
>>> r1["b"].value = 1
>>> cn1.getTransaction().commit()
>>> cn1.getTransaction().commit()
>>> cn1.cacheMinimize()
>>> cn1.cacheMinimize()
# makes everything in cache a ghost
>>> oid = r1["b"]._p_oid
>>> oid = r1["b"]._p_oid
>>> ts.hooked[oid] = 1
>>> ts.hooked[oid] = 1
...
@@ -324,14 +324,14 @@ activate "b" will result in a ReadConflictError.
...
@@ -324,14 +324,14 @@ activate "b" will result in a ReadConflictError.
>>> r1["a"] = MinPO(0)
>>> r1["a"] = MinPO(0)
>>> r1["b"] = MinPO(0)
>>> r1["b"] = MinPO(0)
>>> cn1.getTransaction().commit()
>>> cn1.getTransaction().commit()
>>> cn1.cacheMinimize()
>>> cn1.cacheMinimize()
# makes everything in cache a ghost
>>> oid = r1["b"]._p_oid
>>> oid = r1["b"]._p_oid
>>> ts.hooked[oid] = 1
>>> ts.hooked[oid] = 1
O
nce the oid is hooked, an invalidation will be delivered the next
Again, o
nce the oid is hooked, an invalidation will be delivered the next
time it is activated. The code below activates the object,
then
time it is activated. The code below activates the object,
but unlike the
confirms that the hook worked and that the old state was retrieved
.
section above, this is no older state to retrieve
.
>>> oid in cn1._invalidated
>>> oid in cn1._invalidated
False
False
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment