[CDRIVER-3873] A successful findAndModify retry leaves output bson_error_t set to initial error Created: 23/Jan/21 Updated: 28/Oct/23 Resolved: 25/Jan/21 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.17.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kevin Albertson | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
If mongoc_collection_find_and_modify_with_opts or mongoc_collection_find_and_modify succeeds after retrying due to retryable writes being enabled, it correctly returns "true" but leaves the output bson_error_t set to the original error. The error should be cleared in case caller code is checking the resulting error domain/code. |
| Comments |
| Comment by Githook User [ 23/Mar/21 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message: |
| Comment by Githook User [ 25/Jan/21 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message: |
| Comment by Githook User [ 25/Jan/21 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message: |