Commit d58435ed authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9480f2e3
......@@ -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 ----//---- ?
......@@ -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 """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment