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 16, 2015
1 parent 4b81406 commit 6066802
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 6066802

Please sign in to comment.