Navigation Menu

Skip to content

Commit

Permalink
Don't overwrite catalog.json of the joining node at first.
Browse files Browse the repository at this point in the history
It is needless operation.
  • Loading branch information
piroor committed Jan 15, 2015
1 parent 218de48 commit ef33ef4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/droonga/command/remote.rb
Expand Up @@ -214,12 +214,6 @@ def fetch_catalog
end

def join_to_cluster
# restart self with the fetched catalog.
SafeFileWriter.write(Path.catalog) do |output, file|
output.puts(JSON.pretty_generate(@catalog))
@service_installation.ensure_correct_file_permission(file)
end

log("joining to the cluster: update myself")

CatalogModifier.modify do |modifier, file|
Expand Down

0 comments on commit ef33ef4

Please sign in to comment.