use collection#save instead of collection#insert to save gridio chunks so that replacement chunks overwrite existing ones
This commit is contained in:
parent
1454210d9f
commit
f93e05de83
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user