Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
81e7018a
Commit
81e7018a
authored
Nov 04, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
eceb8b9e
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
38 deletions
+69
-38
neo/lib/protocol.py
neo/lib/protocol.py
+0
-1
neo/tests/threaded/__init__.py
neo/tests/threaded/__init__.py
+23
-0
neo/tests/threaded/testReplication.py
neo/tests/threaded/testReplication.py
+46
-37
No files found.
neo/lib/protocol.py
View file @
81e7018a
...
@@ -918,7 +918,6 @@ class LockInformation(Packet):
...
@@ -918,7 +918,6 @@ class LockInformation(Packet):
PTID
(
'ttid'
),
PTID
(
'ttid'
),
)
)
# NOTE
class
InvalidateObjects
(
Packet
):
class
InvalidateObjects
(
Packet
):
"""
"""
Invalidate objects. PM -> C.
Invalidate objects. PM -> C.
...
...
neo/tests/threaded/__init__.py
View file @
81e7018a
...
@@ -691,6 +691,29 @@ class NEOCluster(object):
...
@@ -691,6 +691,29 @@ class NEOCluster(object):
return
admin
return
admin
###
###
# A few handy shortcuts for tests
@
property
def
ptid
(
self
):
return
self
.
neoctl
.
getRecovery
()[
0
]
@
property
def
backup_tid
(
self
):
return
self
.
neoctl
.
getRecovery
()[
1
]
@
property
def
truncated_tid
(
self
):
return
self
.
neoctl
.
getRecovery
()[
2
]
@
property
def
last_tid
(
self
):
return
self
.
primary_master
.
getLastTransaction
()
@
property
def
cluster_state
(
self
):
return
self
.
neoctl
.
getClusterState
()
###
@
property
@
property
def
primary_master
(
self
):
def
primary_master
(
self
):
master
,
=
[
master
for
master
in
self
.
master_list
if
master
.
primary
]
master
,
=
[
master
for
master
in
self
.
master_list
if
master
.
primary
]
...
...
neo/tests/threaded/testReplication.py
View file @
81e7018a
This diff is collapsed.
Click to expand it.
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