[CXX-1338] Capped size in bytes is limited to 32bit integer, need 64bit integer Created: 11/May/17  Updated: 28/Oct/23  Resolved: 18/May/17

Status: Closed
Project: C++ Driver
Component/s: API
Affects Version/s: 3.1.1
Fix Version/s: 3.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Michele Assignee: J Rassi
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CXX-849 Audit API usage of int32_t Backlog
Backwards Compatibility: Minor Change

 Description   

for capped collection size:
legacy driver correctly use a long long in bool mongo::DBClientWithCommands::createCollection
new driver use int instead:
create_collection& mongocxx::options::create_collection::size ( int max_size )



 Comments   
Comment by Githook User [ 18/May/17 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-1338 Account for type changes in to_document test for create_coll
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/a486c29e9ed901e4eb71698fb268976c13b8c5c7

Comment by Githook User [ 18/May/17 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-1338 create_collection integral options should be std::int64_t

This is an API/ABI-breaking change which changes the type of the
following options::create_collection members (and the associated
getter/setter types) from `int` to `std::int64_t`:

Comment by David Golden [ 11/May/17 ]

Thanks for the report. We'll get this fixed in the next release of the driver. In the meantime, you can use run_command directly to create the collection with the create command.

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