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
9bef0b58
Commit
9bef0b58
authored
Jul 05, 2000
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for loadSerial method, used for hysterical
access.
parent
4a43e943
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+6
-1
src/ZEO/StorageServer.py
src/ZEO/StorageServer.py
+3
-2
No files found.
src/ZEO/ClientStorage.py
View file @
9bef0b58
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Network ZODB storage client
"""
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
import
struct
,
time
,
os
,
socket
,
string
,
Sync
,
zrpc
,
ClientCache
import
tempfile
,
Invalidator
,
ExtensionClass
,
thread
...
...
@@ -255,6 +255,11 @@ class ClientStorage(ExtensionClass.Base, BaseStorage.BaseStorage):
self
.
_lock_acquire
()
try
:
return
self
.
_call
(
'history'
,
oid
,
version
,
length
)
finally
:
self
.
_lock_release
()
def
loadSerial
(
self
,
oid
,
serial
):
self
.
_lock_acquire
()
try
:
return
self
.
_call
(
'loadSerial'
,
oid
,
serial
)
finally
:
self
.
_lock_release
()
def
load
(
self
,
oid
,
version
,
_stuff
=
None
):
self
.
_lock_acquire
()
...
...
src/ZEO/StorageServer.py
View file @
9bef0b58
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__version__
=
"$Revision: 1.
8
$"
[
11
:
-
2
]
__version__
=
"$Revision: 1.
9
$"
[
11
:
-
2
]
import
asyncore
,
socket
,
string
,
sys
,
cPickle
,
os
from
smac
import
SizedMessageAsyncConnection
...
...
@@ -188,7 +188,8 @@ class StorageServer(asyncore.dispatcher):
storage_methods
=
{}
for
n
in
(
'get_info'
,
'abortVersion'
,
'commitVersion'
,
'history'
,
'load'
,
'get_info'
,
'abortVersion'
,
'commitVersion'
,
'history'
,
'load'
,
'loadSerial'
,
'modifiedInVersion'
,
'new_oid'
,
'new_oids'
,
'pack'
,
'store'
,
'storea'
,
'tpc_abort'
,
'tpc_begin'
,
'tpc_begin_sync'
,
'tpc_finish'
,
'undo'
,
'undoLog'
,
'undoInfo'
,
'versionEmpty'
,
...
...
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