Navigation Menu

Skip to content

Commit

Permalink
Report all engine nodes more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jan 15, 2015
1 parent 0043b62 commit 40463de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/droonga/dispatcher.rb
Expand Up @@ -206,14 +206,14 @@ def dispatch_steps(steps)
if target_nodes.empty?
logger.error("there is no node to dispath a write message!",
:my_role => @engine_state.role,
:all_nodes => @cluster.engine_nodes(&:to_json))
:all_nodes => @cluster.engine_nodes.collect(&:to_json))
end
else
target_nodes = @cluster.forwardable_nodes
if target_nodes.empty?
logger.error("there is no node to dispath a read message!",
:my_role => @engine_state.role,
:all_nodes => @cluster.engine_nodes(&:to_json))
:all_nodes => @cluster.engine_nodes.collect(&:to_json))
end
end
routes = dataset.compute_routes(step, target_nodes)
Expand Down
2 changes: 1 addition & 1 deletion lib/droonga/engine_node.rb
Expand Up @@ -95,7 +95,7 @@ def to_json
{
"name" => name,
"role" => role,
"status" => status
"status" => status,
}
end

Expand Down

0 comments on commit 40463de

Please sign in to comment.