Navigation Menu

Skip to content

Commit

Permalink
Read cluster definition from catalog.json correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 28, 2014
1 parent 45909e3 commit 6037f4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/droonga-engine-join
Expand Up @@ -98,8 +98,8 @@ if generator.dataset_for_host(options.joining_host)
"You cannot join a member twice."
end

options.tag = dataset.tag
options.port = dataset.port
options.tag = dataset.replicas.tag
options.port = dataset.replicas.port

options.joining_node = "#{options.joining_host}:#{options.port}/#{options.tag}"

Expand Down
6 changes: 3 additions & 3 deletions bin/droonga-engine-unjoin
Expand Up @@ -71,9 +71,9 @@ unless dataset
end

options.dataset = dataset.name
options.tag = dataset.tag
options.port = dataset.port
options.other_hosts = dataset.hosts
options.tag = dataset.replicas.tag
options.port = dataset.replicas.port
options.other_hosts = dataset.replicas.hosts

remaining_host = options.other_hosts.first || options.replica_remove_host
options.remaining_node = "#{remaining_host}:#{options.port}/#{options.tag}"
Expand Down

0 comments on commit 6037f4b

Please sign in to comment.