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
Kirill Smelkov
ZODB
Commits
b4ad9d5a
Commit
b4ad9d5a
authored
Sep 12, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into transactions-and-threading
Conflicts: CHANGES.rst
parents
f5bf3ed7
09010439
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
11 deletions
+23
-11
CHANGES.rst
CHANGES.rst
+6
-1
doc/reference/storages.rst
doc/reference/storages.rst
+8
-8
src/ZODB/Connection.py
src/ZODB/Connection.py
+7
-1
src/ZODB/DB.py
src/ZODB/DB.py
+2
-1
No files found.
CHANGES.rst
View file @
b4ad9d5a
...
...
@@ -2,7 +2,7 @@
Change History
================
5.0.1 (
2016-09-09
)
5.0.1 (
unreleased
)
==================
- Fix an AttributeError that DemoStorage could raise if it was asked
...
...
@@ -12,6 +12,11 @@
- Call _p_resolveConflict() even if a conflicting change doesn't change the
state. This reverts to the behaviour of 3.10.3 and older.
- Closing a Connection now reverts its ``transaction_manager`` to
None. This helps prevent errors and release resources when the
``transaction_manager`` was the (default) thread-local manager. See
`issue 114 <https://github.com/zopefoundation/ZODB/issues/114>`_.
- Many docstrings have been improved.
5.0.0 (2016-09-06)
...
...
doc/reference/storages.rst
View file @
b4ad9d5a
...
...
@@ -8,7 +8,7 @@ Storage interfaces
==================
There are various storage implementations that implement standard
storage interfaces. The
t
differ primarily in their constructors.
storage interfaces. The
y
differ primarily in their constructors.
Application code rarely calls storage methods, and those it calls are
generally called indirectly through databases. There are
...
...
@@ -144,7 +144,7 @@ Options:
Noteworthy non-included storages
================================
A number of important ZODB storages are distri
u
buted separately, including:
A number of important ZODB storages are distributed separately, including:
RelStorage
`RelStorage <http://relstorage.readthedocs.io/en/latest/>`_
...
...
@@ -153,7 +153,7 @@ RelStorage
storing data in relational databases. Unlike the included storages,
multiple processes can share the same database.
For more i
m
formation, see http://relstorage.readthedocs.io/en/latest/.
For more i
n
formation, see http://relstorage.readthedocs.io/en/latest/.
ZEO
`ZEO <https://github.com/zopefoundation/ZEO>`_ is a client-server
...
...
@@ -161,7 +161,7 @@ ZEO
and use ZEO clients in your application. Unlike the included
storages, multiple processes can share the same database.
For more i
m
formation, see https://github.com/zopefoundation/ZEO.
For more i
n
formation, see https://github.com/zopefoundation/ZEO.
ZRS
`ZRS <https://github.com/zc/zrs>`_
...
...
@@ -173,14 +173,14 @@ ZRS
committed on the primary, they're copied asynchronously to
secondaries.
For more i
m
formation, see https://github.com/zc/zrs.
For more i
n
formation, see https://github.com/zc/zrs.
zlibstorage
`zlibstorage <https://pypi.python.org/pypi/zc.zlibstorage>`_
compresses database records using the compression
algorithm used by `gzip <http://www.gzip.org/>`_.
For more i
m
formation, see https://pypi.python.org/pypi/zc.zlibstorage.
For more i
n
formation, see https://pypi.python.org/pypi/zc.zlibstorage.
beforestorage
`beforestorage <https://pypi.python.org/pypi/zc.beforestorage>`_
...
...
@@ -188,12 +188,12 @@ beforestorage
be changing. This can be useful to provide a non-changing view of a
production database for use with a :class:`~ZODB.DemoStorage.DemoStorage`.
For more i
m
formation, see https://pypi.python.org/pypi/zc.beforestorage.
For more i
n
formation, see https://pypi.python.org/pypi/zc.beforestorage.
cipher.encryptingstorage
`cipher.encryptingstorage
<https://pypi.python.org/pypi/cipher.encryptingstorage/>`_ provided
compression and encryption of database records.
For more informa
yion see,
For more informa
tion, see
https://pypi.python.org/pypi/cipher.encryptingstorage/.
src/ZODB/Connection.py
View file @
b4ad9d5a
...
...
@@ -295,7 +295,9 @@ class Connection(ExportImport, object):
self
.
_debug_info
=
()
if
self
.
opened
:
if
self
.
opened
and
self
.
transaction_manager
is
not
None
:
# transaction_manager could be None if one of the __onCloseCallbacks
# closed the DB already, .e.g, ZODB.connection() does this.
self
.
transaction_manager
.
unregisterSynch
(
self
)
if
primary
:
...
...
@@ -318,6 +320,9 @@ class Connection(ExportImport, object):
if
am
is
not
None
:
am
.
closedConnection
(
self
)
# Drop transaction manager to release resources and help prevent errors
self
.
transaction_manager
=
None
def
db
(
self
):
"""Returns a handle to the database this connection belongs to."""
return
self
.
_db
...
...
@@ -911,6 +916,7 @@ class Connection(ExportImport, object):
c
.
_storage
.
release
()
c
.
_storage
=
c
.
_normal_storage
=
None
c
.
_cache
=
PickleCache
(
self
,
0
,
0
)
c
.
transaction_manager
=
None
##########################################################################
# Python protocol
...
...
src/ZODB/DB.py
View file @
b4ad9d5a
...
...
@@ -637,7 +637,8 @@ class DB(object):
@
self
.
_connectionMap
def
_
(
c
):
c
.
transaction_manager
.
abort
()
if
c
.
transaction_manager
is
not
None
:
c
.
transaction_manager
.
abort
()
c
.
afterCompletion
=
c
.
newTransaction
=
c
.
close
=
noop
c
.
_release_resources
()
...
...
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