lib/gizzard/commands.rb in gizzmo-0.12.0 vs lib/gizzard/commands.rb in gizzmo-0.12.1

- old
+ new

@@ -638,9 +638,11 @@ manager.remove_link(write_only_shard_id, to_shard_id) manager.list_upward_links(replica_shard_id).each do |link| manager.remove_link(link.up_id, link.down_id) manager.add_link(link.up_id, to_shard_id, link.weight) end + manager.remove_link(replica_shard_id, from_shard_id) + manager.remove_link(replica_shard_id, write_only_shard_id) manager.replace_forwarding(replica_shard_id, to_shard_id) manager.delete_shard(replica_shard_id) manager.delete_shard(write_only_shard_id) end end