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
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
Kirill Smelkov
ZEO
Commits
8c67e57e
Commit
8c67e57e
authored
Mar 20, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added check for conflict resolution in defered return of serial
numbers.
parent
ab1ec3ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
src/ZODB/Connection.py
src/ZODB/Connection.py
+17
-8
No files found.
src/ZODB/Connection.py
View file @
8c67e57e
...
...
@@ -84,8 +84,8 @@
##############################################################################
"""Database connection support
$Id: Connection.py,v 1.4
6 2001/03/15 13:16:26
jim Exp $"""
__version__
=
'$Revision: 1.4
6
$'
[
11
:
-
2
]
$Id: Connection.py,v 1.4
7 2001/03/20 04:00:17
jim Exp $"""
__version__
=
'$Revision: 1.4
7
$'
[
11
:
-
2
]
from
cPickleCache
import
PickleCache
from
POSException
import
ConflictError
,
ExportError
...
...
@@ -391,11 +391,17 @@ class Connection(ExportImport.ExportImport):
if
_type
(
s
)
is
not
_st
:
raise
s
o
=
get
(
oi
,
oi
)
if
o
is
not
oi
:
o
.
_p_serial
=
s
o
.
_p_changed
=
0
if
s
is
ResolvedSerial
:
o
.
_p_changed
=
None
else
:
o
.
_p_serial
=
s
o
.
_p_changed
=
0
elif
oi
==
oid
:
object
.
_p_serial
=
s
object
.
_p_changed
=
0
if
s
is
ResolvedSerial
:
object
.
_p_changed
=
None
else
:
object
.
_p_serial
=
s
object
.
_p_changed
=
0
try
:
cache
[
oid
]
=
object
except
:
...
...
@@ -624,8 +630,11 @@ class Connection(ExportImport.ExportImport):
o
=
get
(
oid
,
oid
)
if
o
is
not
oid
:
if
_type
(
s
)
is
not
_st
:
raise
s
o
.
_p_serial
=
s
o
.
_p_changed
=
0
if
s
is
ResolvedSerial
:
o
.
_p_changed
=
None
else
:
o
.
_p_serial
=
s
o
.
_p_changed
=
0
def
tpc_finish
(
self
,
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