Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
Levin Zimmermann
neoppod
Commits
d58435ed
Commit
d58435ed
authored
Oct 24, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9480f2e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
neo/storage/handlers/client.py
neo/storage/handlers/client.py
+5
-0
neo/storage/handlers/identification.py
neo/storage/handlers/identification.py
+1
-1
No files found.
neo/storage/handlers/client.py
View file @
d58435ed
...
...
@@ -224,6 +224,7 @@ class ClientOperationHandler(EventHandler):
# like ClientOperationHandler but read-only & only up-to backup_tid
# XXX naming -> ClientReadOnlyHandler ?
class
ClientROOperationHandler
(
ClientOperationHandler
):
def
_readOnly
(
self
,
*
args
,
**
kw
):
raise
NotReadyError
(
'read-only access'
)
...
...
@@ -235,3 +236,7 @@ class ClientROOperationHandler(ClientOperationHandler):
askFinalTID
=
_readOnly
# askObjectUndoSerial is used in undo() but itself is read-only query
askCheckCurrentSerial
=
_readOnly
# takes write lock & is only used when going to commit
# XXX askTIDsFrom - cut tids in reply to backup_tid ?
# XXX askTIDs ----//---- ?
# XXX askObjectHistory ----//---- ?
neo/storage/handlers/identification.py
View file @
d58435ed
...
...
@@ -19,7 +19,7 @@ from neo.lib.handler import EventHandler
from
neo.lib.protocol
import
uuid_str
,
NodeTypes
,
NotReadyError
,
Packets
from
neo.lib.protocol
import
ProtocolError
,
BrokenNodeDisallowedError
from
.storage
import
StorageOperationHandler
from
.client
import
ClientOperationHandler
from
.client
import
ClientOperationHandler
,
ClientROOperationHandler
class
IdentificationHandler
(
EventHandler
):
""" Handler used for incoming connections during operation state """
...
...
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