Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
8ce72435
Commit
8ce72435
authored
Mar 12, 2004
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OK! Looks great.
parent
824dc122
Changes
1
Hide 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 @
8ce72435
...
...
@@ -288,7 +288,7 @@ non-current revision to load.
>>> cn1.getTransaction().commit()
>>> r1["b"].value = 1
>>> cn1.getTransaction().commit()
>>> cn1.cacheMinimize()
>>> cn1.cacheMinimize()
# makes everything in cache a ghost
>>> oid = r1["b"]._p_oid
>>> ts.hooked[oid] = 1
...
...
@@ -324,14 +324,14 @@ activate "b" will result in a ReadConflictError.
>>> r1["a"] = MinPO(0)
>>> r1["b"] = MinPO(0)
>>> cn1.getTransaction().commit()
>>> cn1.cacheMinimize()
>>> cn1.cacheMinimize()
# makes everything in cache a ghost
>>> oid = r1["b"]._p_oid
>>> ts.hooked[oid] = 1
O
nce the oid is hooked, an invalidation will be delivered the next
time it is activated. The code below activates the object,
then
confirms that the hook worked and that the old state was retrieved
.
Again, o
nce the oid is hooked, an invalidation will be delivered the next
time it is activated. The code below activates the object,
but unlike the
section above, this is no older state to retrieve
.
>>> oid in cn1._invalidated
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