[JAVA-2336] CreateCollectionOperation uses invalid field for create command for userPowerOf2Sizes property Created: 06/Oct/16  Updated: 04/Oct/18  Resolved: 11/Oct/16

Status: Closed
Project: Java Driver
Component/s: Command Operations
Affects Version/s: 3.0.0
Fix Version/s: 3.4.0

Type: Bug Priority: Trivial - P5
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

CreateCollectionOperation sends a usePowerOf2Sizes field to the create command, but according to https://docs.mongodb.com/manual/reference/command/create/ it should be flags : 1.

Note that this is only in the core API, which is unlikely to be used directly by anyone. The high level API doesn't set this property.



 Comments   
Comment by Githook User [ 11/Oct/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2336: Deprecate usePowerOf2Sizes in CreateCollectionOptions and suppress any warnings of usage of CreateCollectionOperation.usePowerOf2Sizes
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/6cc3b4862fdd62ecede8fa95a92d22beb5e7ea7d

Comment by Githook User [ 07/Oct/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2336: Use flags field for create command to set usePowerOf2Sizes
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/ef65a7f3a8530cf2d255f63147b51473698491d6

Generated at Thu Feb 08 08:56:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.