use collection#save instead of collection#insert to save gridio chunks so that replacement chunks overwrite existing ones

This commit is contained in:
John Bintz 2012-04-25 07:59:32 -04:00 committed by Tyler Brock
parent 1454210d9f
commit f93e05de83
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ module Mongo
end
def save_chunk(chunk)
@chunks.insert(chunk)
@chunks.save(chunk)
end
def get_chunk(n)