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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
3ed56074
Commit
3ed56074
authored
Oct 10, 2008
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LP #142667: ensure _reader uses new cache in _resetCache.
parent
169b8e41
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
5 deletions
+40
-5
NEWS.txt
NEWS.txt
+29
-4
setup.py
setup.py
+1
-1
src/ZODB/Connection.py
src/ZODB/Connection.py
+2
-0
src/ZODB/tests/testConnection.py
src/ZODB/tests/testConnection.py
+8
-0
No files found.
NEWS.txt
View file @
3ed56074
What's new on ZODB 3.7.3?
=========================
Release date: DD-MMM-YYYY
Connection
----------
- (3.7.3) Reset ``_cache`` on a connection's ``_reader`` object when
resetting the cache, to prevent reads from the old cache object, e.g.
during Zope2's auto-refresh of products.
(https://bugs.launchpad.net/zodb/+bug/142667).
What's new on ZODB 3.7.2?
=========================
Release date: 27-Sep-2007
ClientStorage
-------------
- (3.7.2) Fixed a serious bug that could cause client I/O to stop
(hang). This was accomonied by a critical log message along the
lines of: "RuntimeError: dictionary changed size during iteration".
What's new on ZODB 3.7.1?
=========================
Release date: 03-Jul-2007
Packaging
---------
...
...
@@ -19,10 +48,6 @@ Packaging
ClientStorage
-------------
- (3.7.2) Fixed a serious bug that could cause client I/O to stop
(hang). This was accomonied by a critical log message along the
lines of: "RuntimeError: dictionary changed size during iteration".
- (3.7b4) Added logic to avoid spurious errors from the logging system
on exit.
...
...
setup.py
View file @
3ed56074
...
...
@@ -20,7 +20,7 @@ to application logic. ZODB includes features such as a plugable storage
interface, rich transaction support, and undo.
"""
VERSION
=
"3.7.
2
"
VERSION
=
"3.7.
3dev
"
# The (non-obvious!) choices for the Trove Development Status line:
# Development Status :: 5 - Production/Stable
...
...
src/ZODB/Connection.py
View file @
3ed56074
...
...
@@ -983,6 +983,8 @@ class Connection(ExportImport, object):
self
.
_invalidatedCache
=
False
cache_size
=
self
.
_cache
.
cache_size
self
.
_cache
=
cache
=
PickleCache
(
self
,
cache_size
)
if
getattr
(
self
,
'_reader'
,
None
)
is
not
None
:
self
.
_reader
.
_cache
=
cache
##########################################################################
# Python protocol
...
...
src/ZODB/tests/testConnection.py
View file @
3ed56074
...
...
@@ -146,6 +146,14 @@ class ConnectionDotAdd(unittest.TestCase):
self
.
datamgr
.
tpc_finish
(
self
.
transaction
)
self
.
assert_
(
obj
.
_p_oid
not
in
self
.
datamgr
.
_storage
.
_stored
)
def
check__resetCacheResetsReader
(
self
):
# https://bugs.launchpad.net/zodb/+bug/142667
old_cache
=
self
.
datamgr
.
_cache
self
.
datamgr
.
_resetCache
()
new_cache
=
self
.
datamgr
.
_cache
self
.
failIf
(
new_cache
is
old_cache
)
self
.
failUnless
(
self
.
datamgr
.
_reader
.
_cache
is
new_cache
)
class
UserMethodTests
(
unittest
.
TestCase
):
# add isn't tested here, because there are a bunch of traditional
...
...
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