Skip to content

Commit

Permalink
Merge remote branch 'mattd/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewford committed Nov 23, 2010
2 parents 218471e + df296c1 commit 0dce7fe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/heroku/command/mongo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ def transfer(from, to)
dest_index_col = dest.collection('system.indexes')
origin_index_col = origin.collection('system.indexes')
origin_index_col.find().each do |index|
if index['_id']
index['ns'] = index['ns'].sub(origin_index_col.db.name, dest_index_col.db.name)
dest_index_col.insert index
end
index['ns'] = index['ns'].sub(origin_index_col.db.name, dest_index_col.db.name)
dest_index_col.insert index
end
display " done"
end
Expand Down

0 comments on commit 0dce7fe

Please sign in to comment.