drewmccormack / ensembles

A synchronization framework for Core Data.
MIT License
1.63k stars 131 forks source link

Race condition handling data blobs #140

Closed drewmccormack closed 10 years ago

drewmccormack commented 10 years ago

Data files containing large blobs can be delete prematurely under these circumstances:

Device A creates event with data files Data files arrive on B, but not the event Data files are not attached to any event, so get deleted Event arrives, but data files are already gone

Fix is to make sure a data file is only ever deleted if it has been associated with an event.

mwaterfall commented 10 years ago

We have a "large file" database, and we also store thumbnails in our main database, so very interested in this fix!

drewmccormack commented 10 years ago

Working on it right now.

On 19 May 2014, at 14:58, Michael Waterfall notifications@github.com wrote:

We have a "large file" database, and we also store thumbnails in our main database, so very interested in this fix!

— Reply to this email directly or view it on GitHub.

mwaterfall commented 10 years ago

Awesome! :-)

drewmccormack commented 10 years ago

Should be fixed in 590c753513f1bd8c424b0bdaab8c6862f43301b7