[CXX-814] test_driver issues warning that bulk_write update_one requires $ operators Created: 12/Jan/16  Updated: 28/Jan/16  Resolved: 14/Jan/16

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: 3.0.0-rc0
Fix Version/s: 3.0.0

Type: Bug Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Tess Avitabile (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: C++11 Driver MongoDB 3.2

 Description   

test_driver issues the following warning:

WARNING: mongoc: mongoc_bulk_operation_update_one(): update_one only works with $ operators.

This error occurs when bulk_write update_one is used without $set. replace_one must be used to replace whole documents. We should find and change the occurrences of update_one without $set.



 Comments   
Comment by Githook User [ 14/Jan/16 ]

Author:

{u'username': u'tessavitabile', u'name': u'Tess Avitabile', u'email': u'tess.avitabile@mongodb.com'}

Message: CXX-814 Use set with update_one in test_driver
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/72172b2cbb79943a5bff2c712917003fe81d1f19

Comment by Tess Avitabile (Inactive) [ 14/Jan/16 ]

https://github.com/mongodb/mongo-cxx-driver/pull/437

Generated at Wed Feb 07 22:00:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.