Navigation Menu

Skip to content

Commit

Permalink
Remove duplicated hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 27, 2014
1 parent 22b23e9 commit d1cde76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/droonga-engine-join
Expand Up @@ -110,6 +110,7 @@ puts "Restarting new replica..."

final_params = Marshal.load(Marshal.dump(dataset_params))
final_params[options.dataset][:hosts] += [options.my_host]
final_params[options.dataset][:hosts].uniq!
final_catalog = Droonga::CatalogGenerator.generate(final_params)
Droonga::SafeFileWriter.write(catalog_path, JSON.pretty_generate(final_catalog))

Expand Down

0 comments on commit d1cde76

Please sign in to comment.