mongodb/mongo-ruby-driver — pull request #82 by repeatedly (2012-01-06 23:31:36+00:00)
Title: Add :collect_on_error option to collect invalid documents in bulk-insert

This patch is inspired by pull request #78.

Current ruby-driver can't handle invalid documents in bulk-insert.
This is a serious problem in product, e.g. Fluentd, aggregation of application data and etc.

If Collection#insert detects invalid documents, then
we can handle such documents after bulk-insert.
For example. logging to file, retry insert as a BinData and etc.

So, I introduce :collect_on_error option to resolve above problem.