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
29f4cd3f
Commit
29f4cd3f
authored
Oct 04, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize _begun to 0, not None.
parent
565f9a71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/ZODB/Connection.py
src/ZODB/Connection.py
+5
-5
No files found.
src/ZODB/Connection.py
View file @
29f4cd3f
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Database connection support
$Id: Connection.py,v 1.7
6 2002/09/16 23:50:39
jeremy Exp $"""
$Id: Connection.py,v 1.7
7 2002/10/04 20:44:25
jeremy Exp $"""
from
cPickleCache
import
PickleCache
,
MUCH_RING_CHECKING
from
POSException
import
ConflictError
,
ReadConflictError
...
...
@@ -270,7 +270,7 @@ class Connection(ExportImport.ExportImport):
# NB: commit() is responsible for calling tpc_begin() on the storage.
# It uses self._begun to track whether it has been called. When
# self._begun is
None
, it has not been called.
# self._begun is
0
, it has not been called.
# This arrangement allows us to handle the special case of a
# transaction with no modified objects. It is possible for
...
...
@@ -285,7 +285,7 @@ class Connection(ExportImport.ExportImport):
def
commit
(
self
,
object
,
transaction
):
if
object
is
self
:
if
self
.
_begun
is
None
:
if
not
self
.
_begun
:
self
.
_storage
.
tpc_begin
(
transaction
)
self
.
_begun
=
1
...
...
@@ -313,7 +313,7 @@ class Connection(ExportImport.ExportImport):
# Nothing to do
return
if
self
.
_begun
is
None
:
if
not
self
.
_begun
:
self
.
_storage
.
tpc_begin
(
transaction
)
self
.
_begun
=
1
...
...
@@ -623,7 +623,7 @@ class Connection(ExportImport.ExportImport):
def
tpc_begin
(
self
,
transaction
,
sub
=
None
):
self
.
_invalidating
=
[]
self
.
_creating
=
[]
self
.
_begun
=
None
self
.
_begun
=
0
if
sub
:
# Sub-transaction!
...
...
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