[CXX-287] Tutorial uses outdated .ensureIndex Created: 22/Jul/14 Updated: 23/Oct/14 Resolved: 14/Aug/14 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | legacy-1.0.0-rc1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Russell Kaplan | Assignee: | Samantha Ritter (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | legacy-cxx | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
On the tutorial page of the C++ driver, the section labeled "Indexing" uses the deprecated DBClientConnection::ensureIndex method, which no longer exists as part of the DBClientConnection API. It appears to now be called createIndex. Fix is just :%s/ensureIndex/createIndex/g |
| Comments |
| Comment by Andrew Morrow (Inactive) [ 04/Aug/14 ] |
|
We are breaking compatibility with the old (a.k.a '26compat') C++ driver in several ways on the legacy branch, so since we were already breaking compatibility, it seemed good to make this a hard switch rather than deprecate. There was a lot of rather poor implementation code to support the 'ensure' semantics, so it seemed like a good idea to drop it. |