Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Done
-
None
Description
BulkWriteResult.getModifiedCount should throw MongoInternalException if server version < 2.6 because those servers can not provide the value properly via getlasterror. To detect whether it will throw, clients can call BulkWriteResult.isModifiedCountAvailable. If it returns true, it's safe to call BulkWriteResult.getModifiedCount
Attachments
Issue Links
- is depended on by
-
DRIVERS-143 Don't include the nModified field in Bulk API results if talking to a legacy server.
-
- Closed
-
-
DRIVERS-145 Don't include the nModified field in Bulk API results if talking to a legacy server via mongos
-
- Closed
-