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
Iliya Manolov
neoppod
Commits
61d37895
Commit
61d37895
authored
Feb 21, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some minor cleanup
parent
49edad32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
neo/scripts/runner.py
neo/scripts/runner.py
+1
-3
neo/storage/handlers/__init__.py
neo/storage/handlers/__init__.py
+2
-2
neo/storage/handlers/verification.py
neo/storage/handlers/verification.py
+2
-3
No files found.
neo/scripts/runner.py
View file @
61d37895
...
@@ -300,9 +300,7 @@ class TestRunner(BenchmarkRunner):
...
@@ -300,9 +300,7 @@ class TestRunner(BenchmarkRunner):
def
main
(
args
=
None
):
def
main
(
args
=
None
):
runner
=
TestRunner
()
runner
=
TestRunner
()
runner
.
run
()
runner
.
run
()
if
not
runner
.
was_successful
():
return
sys
.
exit
(
not
runner
.
was_successful
())
sys
.
exit
(
1
)
sys
.
exit
(
0
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
main
()
main
()
neo/storage/handlers/__init__.py
View file @
61d37895
...
@@ -36,7 +36,7 @@ class BaseMasterHandler(EventHandler):
...
@@ -36,7 +36,7 @@ class BaseMasterHandler(EventHandler):
raise
PrimaryFailure
(
're-election occurs'
)
raise
PrimaryFailure
(
're-election occurs'
)
def
notifyClusterInformation
(
self
,
conn
,
state
):
def
notifyClusterInformation
(
self
,
conn
,
state
):
neo
.
lib
.
logging
.
warning
(
'ignoring notify cluster information in %s'
%
neo
.
lib
.
logging
.
warning
(
'ignoring notify cluster information in %s'
,
self
.
__class__
.
__name__
)
self
.
__class__
.
__name__
)
def
notifyLastOID
(
self
,
conn
,
oid
):
def
notifyLastOID
(
self
,
conn
,
oid
):
...
@@ -49,7 +49,7 @@ class BaseMasterHandler(EventHandler):
...
@@ -49,7 +49,7 @@ class BaseMasterHandler(EventHandler):
for
node_type
,
addr
,
uuid
,
state
in
node_list
:
for
node_type
,
addr
,
uuid
,
state
in
node_list
:
if
uuid
==
self
.
app
.
uuid
:
if
uuid
==
self
.
app
.
uuid
:
# This is me, do what the master tell me
# This is me, do what the master tell me
neo
.
lib
.
logging
.
info
(
"I was told I'm %s"
%
(
state
)
)
neo
.
lib
.
logging
.
info
(
"I was told I'm %s"
,
state
)
if
state
in
(
NodeStates
.
DOWN
,
NodeStates
.
TEMPORARILY_DOWN
,
if
state
in
(
NodeStates
.
DOWN
,
NodeStates
.
TEMPORARILY_DOWN
,
NodeStates
.
BROKEN
):
NodeStates
.
BROKEN
):
erase
=
state
==
NodeStates
.
DOWN
erase
=
state
==
NodeStates
.
DOWN
...
...
neo/storage/handlers/verification.py
View file @
61d37895
...
@@ -38,9 +38,8 @@ class VerificationHandler(BaseMasterHandler):
...
@@ -38,9 +38,8 @@ class VerificationHandler(BaseMasterHandler):
conn
.
answer
(
Packets
.
AnswerLastIDs
(
oid
,
tid
,
app
.
pt
.
getID
()))
conn
.
answer
(
Packets
.
AnswerLastIDs
(
oid
,
tid
,
app
.
pt
.
getID
()))
def
askPartitionTable
(
self
,
conn
):
def
askPartitionTable
(
self
,
conn
):
ptid
=
self
.
app
.
pt
.
getID
()
pt
=
self
.
app
.
pt
row_list
=
self
.
app
.
pt
.
getRowList
()
conn
.
answer
(
Packets
.
AnswerPartitionTable
(
pt
.
getID
(),
pt
.
getRowList
()))
conn
.
answer
(
Packets
.
AnswerPartitionTable
(
ptid
,
row_list
))
def
notifyPartitionChanges
(
self
,
conn
,
ptid
,
cell_list
):
def
notifyPartitionChanges
(
self
,
conn
,
ptid
,
cell_list
):
"""This is very similar to Send Partition Table, except that
"""This is very similar to Send Partition Table, except that
...
...
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