If you want, you could implement a transaction-like device to ensure
that you can easily locate orphaned chunks when they exist, but you'd
have to hack your GridFS implementation. But basically, you could
write the files_id to a document in another collection (call it
fs.tmp), then write the chunks, then write the metadata to fs.files,
and then delete the tmp document from fs.tmp.
Later, a document in fs.tmp will indicate the possibility of orphaned
chunks with the given files_id.
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>