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
49389410
Commit
49389410
authored
Apr 02, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added logic to support conflict resolution.
parent
4fe18710
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+8
-2
No files found.
src/ZEO/ClientStorage.py
View file @
49389410
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Network ZODB storage client
"""
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
7
$'
[
11
:
-
2
]
import
struct
,
time
,
os
,
socket
,
string
,
Sync
,
zrpc
,
ClientCache
import
tempfile
,
Invalidator
,
ExtensionClass
,
thread
...
...
@@ -96,6 +96,9 @@ from ZODB import POSException, BaseStorage
from
ZODB.TimeStamp
import
TimeStamp
from
zLOG
import
LOG
,
PROBLEM
,
INFO
try
:
from
ZODB.ConflictResolution
import
ResolvedSerial
except
:
ResolvedSerial
=
'rs'
TupleType
=
type
(())
class
ClientStorageError
(
POSException
.
StorageError
):
...
...
@@ -517,6 +520,9 @@ class ClientStorage(ExtensionClass.Base, BaseStorage.BaseStorage):
"Unexpected end of file in client storage "
"temporary file."
)
if
s
==
ResolvedSerial
:
cache
.
invalidate
(
oid
,
v
)
else
:
update
(
oid
,
s
,
v
,
p
)
i
=
i
+
14
+
vlen
+
dlen
...
...
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