Navigation Menu

Skip to content

Commit

Permalink
Update replicas correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 28, 2014
1 parent 8c45c65 commit bdf1982
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/droonga/catalog_generator.rb
Expand Up @@ -83,12 +83,12 @@ def modify(dataset_modifications)
end

if modification[:add_replica_hosts]
dataset.hosts += modification[:add_replica_hosts]
dataset.hosts.uniq!
replicas.hosts += modification[:add_replica_hosts]
replicas.hosts.uniq!
end

if modification[:remove_replica_hosts]
dataset.hosts -= modification[:remove_replica_hosts]
replicas.hosts -= modification[:remove_replica_hosts]
end
end
end
Expand Down

0 comments on commit bdf1982

Please sign in to comment.