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
f6b665bb
Commit
f6b665bb
authored
Jun 05, 2000
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug that occurs in cases when objects without _p_jar
attributes are registered.
parent
6e7e20ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/ZODB/Transaction.py
src/ZODB/Transaction.py
+12
-12
No files found.
src/ZODB/Transaction.py
View file @
f6b665bb
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
##############################################################################
##############################################################################
"""Transaction management
"""Transaction management
$Id: Transaction.py,v 1.2
2 2000/05/30 19:03:27
jim Exp $"""
$Id: Transaction.py,v 1.2
3 2000/06/05 11:04:32
jim Exp $"""
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
import
time
,
sys
,
struct
,
POSException
import
time
,
sys
,
struct
,
POSException
from
struct
import
pack
from
struct
import
pack
...
@@ -239,16 +239,16 @@ class Transaction:
...
@@ -239,16 +239,16 @@ class Transaction:
try
:
try
:
for
o
in
objects
:
for
o
in
objects
:
j
=
getattr
(
o
,
'_p_jar'
,
o
)
j
=
getattr
(
o
,
'_p_jar'
,
o
)
if
j
is
None
:
continue
if
j
is
not
None
:
i
=
id
(
j
)
i
=
id
(
j
)
if
not
jars
.
has_key
(
i
):
if
not
jars
.
has_key
(
i
):
jars
[
i
]
=
j
jars
[
i
]
=
j
if
subtransaction
:
if
subtransaction
:
subj
[
i
]
=
j
subj
[
i
]
=
j
j
.
tpc_begin
(
self
,
subtransaction
)
j
.
tpc_begin
(
self
,
subtransaction
)
else
:
else
:
j
.
tpc_begin
(
self
)
j
.
tpc_begin
(
self
)
j
.
commit
(
o
,
self
)
j
.
commit
(
o
,
self
)
ncommitted
=
ncommitted
+
1
ncommitted
=
ncommitted
+
1
# Commit work done in subtransactions
# Commit work done in subtransactions
...
...
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