[CXX-806] BulkOperation is not applicable to Cent OS 6 c++ driver(libmongodb-devel-2.4.13-1.el6.x86_64) Created: 08/Jan/16 Updated: 11/Sep/19 Resolved: 09/Jan/16 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | API |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | gabriel.wang | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | legacy-cxx | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
1. CentOS 6 (x86_64) |
||
| Description |
|
1) |
| Comments |
| Comment by Andrew Morrow (Inactive) [ 09/Jan/16 ] |
|
Thanks for the additional information. I'm closing this ticket as there isn't really anything for us to do on our side, but please feel free to re-open it or reach out on the mongodb-user list if you need any further help. |
| Comment by gabriel.wang [ 08/Jan/16 ] |
|
Hi Andrew, Thanks very much for your prompt response. |
| Comment by Andrew Morrow (Inactive) [ 08/Jan/16 ] |
|
What package are you using on CentOS 7? Please note that MongoDB does not currently handle the packaging for the C++ driver on any platform, so we do not control which variants are available on each distro version. |
| Comment by Andrew Morrow (Inactive) [ 08/Jan/16 ] |
|
The BulkOperationBuilder class was only introduced in the MongoDB C++ legacy driver. The driver that you are trying to build against appears to be a packaging of the older "server C++ driver" from MongoDB 2.4. If you want to use the BulkOperationBuilder, you will need to install a version of the legacy C++ driver, available here: https://github.com/mongodb/mongo-cxx-driver. I recommend reading the section on the wiki detailing how to build and install it: https://github.com/mongodb/mongo-cxx-driver/wiki/Download-and-Compile-The-Legacy-Driver. |
| Comment by gabriel.wang [ 08/Jan/16 ] |
|
In centOS 7(x86_64), the bulkOperation functionality is fine, but when compiling in centOS 6 which install the c++ driver: libmongodb-devel-2.4.13-1.el6.x86_64, compilation failed with message: error: ‘mongo::BulkOperationBuilder’ has not been declared. I want to know whether is there latest driver for centOS 6 supporting the bulkOperation functionality. Currently, I have to use conditional compilation to differentiate two OS version, and could improve the data operation performance on CentOS 6. |