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

View File

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