mongoid / mongoid-grid_fs

A pure Mongoid/Moped implementation of the MongoDB GridFS specification.
Other
83 stars 50 forks source link

Chunks not cleaned when removing a file #80

Open zedtux opened 1 year ago

zedtux commented 1 year ago

I have already opened the issue https://github.com/carrierwaveuploader/carrierwave-mongoid/issues/205 where I explain that when deleting a model which has a mounter using the :grid_fs storage engine, the GridFs::File is well destroyed, but the belonging GridFs::Chunk aren't, even do I found the has_many :chunks, ..., dependent: :destroy, ... line in this gem.

I have checked the tests from this gem and I couldn't find one which ensures the chunks are cleaned.

Does anyone had that issue already ?