Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tempstorage
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
tempstorage
Commits
5d94e0ce
Commit
5d94e0ce
authored
May 16, 2004
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Account for HEAD ZODB changes to make tests pass.
parent
33ced447
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
TemporaryStorage.py
TemporaryStorage.py
+12
-7
No files found.
TemporaryStorage.py
View file @
5d94e0ce
...
@@ -23,7 +23,7 @@ $Id: TemporaryStorage.py,v 1.1.2.2 2004/05/16 01:41:34 chrism Exp $
...
@@ -23,7 +23,7 @@ $Id: TemporaryStorage.py,v 1.1.2.2 2004/05/16 01:41:34 chrism Exp $
__version__
=
'$Revision: 1.1.2.2 $'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1.2.2 $'
[
11
:
-
2
]
from
zLOG
import
LOG
,
BLATHER
from
zLOG
import
LOG
,
BLATHER
from
ZODB.
referencesf
import
referencesf
from
ZODB.
serialize
import
referencesf
from
ZODB
import
POSException
from
ZODB
import
POSException
from
ZODB.BaseStorage
import
BaseStorage
from
ZODB.BaseStorage
import
BaseStorage
from
ZODB.ConflictResolution
import
ConflictResolvingStorage
,
ResolvedSerial
from
ZODB.ConflictResolution
import
ConflictResolvingStorage
,
ResolvedSerial
...
@@ -146,13 +146,18 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
...
@@ -146,13 +146,18 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
if
self
.
_index
.
has_key
(
oid
):
if
self
.
_index
.
has_key
(
oid
):
oserial
=
self
.
_index
[
oid
]
oserial
=
self
.
_index
[
oid
]
if
serial
!=
oserial
:
if
serial
!=
oserial
:
data
=
self
.
tryToResolveConflict
(
oid
,
oserial
,
serial
,
data
)
newdata
=
self
.
tryToResolveConflict
(
if
not
data
:
oid
,
oserial
,
serial
,
data
)
raise
POSException
.
ConflictError
(
oid
=
oid
,
if
not
newdata
:
serials
=
(
oserial
,
serial
))
raise
POSException
.
ConflictError
(
oid
=
oid
,
serials
=
(
oserial
,
serial
),
data
=
data
)
else
:
data
=
newdata
else
:
else
:
oserial
=
serial
oserial
=
serial
newserial
=
self
.
_
serial
newserial
=
self
.
_
tid
self
.
_tmp
.
append
((
oid
,
data
))
self
.
_tmp
.
append
((
oid
,
data
))
now
=
time
.
time
()
now
=
time
.
time
()
self
.
_conflict_cache
[(
oid
,
newserial
)]
=
data
,
now
self
.
_conflict_cache
[(
oid
,
newserial
)]
=
data
,
now
...
@@ -165,7 +170,7 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
...
@@ -165,7 +170,7 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
referenceCount
=
self
.
_referenceCount
referenceCount
=
self
.
_referenceCount
referenceCount_get
=
referenceCount
.
get
referenceCount_get
=
referenceCount
.
get
oreferences
=
self
.
_oreferences
oreferences
=
self
.
_oreferences
serial
=
self
.
_
serial
serial
=
self
.
_
tid
index
=
self
.
_index
index
=
self
.
_index
opickle
=
self
.
_opickle
opickle
=
self
.
_opickle
...
...
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