[CXX-171] C++ driver should support all Write Concern types Created: 23/Apr/12 Updated: 13/Nov/14 Resolved: 29/Apr/14 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Implementation |
| Affects Version/s: | None |
| Fix Version/s: | legacy-0.9.0 |
| Type: | Improvement | Priority: | Critical - P2 |
| Reporter: | Jeff Andrews | Assignee: | Tyler Brock |
| Resolution: | Duplicate | Votes: | 3 |
| Labels: | cxxcopy, legacy-cxx | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
All |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Right now, the C++ driver only supports NONE and NORMAL. |
| Comments |
| Comment by Tyler Brock [ 29/Apr/14 ] | |||
|
This ticket is effectively subsumed by | |||
| Comment by Rodolfo Rodriguez [ 14/Jan/13 ] | |||
|
Hi, Were using the C++ driver for MongoDB on Windows. | |||
| Comment by Jeff Andrews [ 23/Apr/12 ] | |||
|
Cool, the first method you mentioned is introduced in the 2.1.0 version, right? We're only using "stable" releases right now (mongodb-linux-x86_64-v2.0-latest.tgz). But, I shall remember that when the driver becomes available via download. | |||
| Comment by Eliot Horowitz (Inactive) [ 23/Apr/12 ] | |||
|
You need to a getLastError with whatever options you want. Actually, there is also this method
that supports all the options. so you would do something like
But yes - leaving this open as we do need to add more helpers for WriteConcern | |||
| Comment by Jeff Andrews [ 23/Apr/12 ] | |||
|
So, I have to issue a raw command to change the write concern? This is from the latest code...(dbclient.h) /**
If I have to do it manually then fine, but I would still like to see the improvement in the C++ driver. | |||
| Comment by Eliot Horowitz (Inactive) [ 23/Apr/12 ] | |||
|
You can do any of them using a raw getLastError command, what's missing is helpers. |