[CDRIVER-2384] mongoc_bulk_operation_execute() returns before initializing reply bson_t Created: 17/Nov/17  Updated: 28/Oct/23  Resolved: 18/Nov/17

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.9.0

Type: Bug Priority: Major - P3
Reporter: Graham Whitted Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File CDRIVER-2384.patch    

 Description   

Regression added to 1.6.0 by CDRIVER-1138.

It is now possible for mongoc_bulk_operation_execute() to return before initializing the reply (i.e. when bulk->client is null).



 Comments   
Comment by Githook User [ 18/Nov/17 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis', 'email': 'jesse@mongodb.com'}

Message: CDRIVER-2384 test bulk_execute error
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/bafeb53590be8b64c115d3ef65cd54963df24585

Comment by Githook User [ 18/Nov/17 ]

Author:

{'name': 'Graham Whitted', 'username': 'gwhitted', 'email': 'graham.whitted@disneyanimation.com'}

Message: CDRIVER-2384 Fixed reply not being initialized

Fixed monogc_bulk_operation_execute() so that it behaves as documented
and always initializes the reply bson_t before returning.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/5c864a53e15cf130fca1a78fdc730f84d6e672a7

Comment by Graham Whitted [ 17/Nov/17 ]

Done.
https://github.com/mongodb/mongo-c-driver/pull/462

Comment by A. Jesse Jiryu Davis [ 17/Nov/17 ]

Nice catch, thanks. Want to make a pull request to master on GitHub?

https://github.com/mongodb/mongo-c-driver

Generated at Wed Feb 07 21:15:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.