[CXX-1045] collection::count() serializes options::count::hint incorrectly Created: 22/Sep/16 Updated: 19/Oct/16 Resolved: 08/Oct/16 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Implementation |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | J Rassi | Assignee: | J Rassi |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
collection::count() incorrectly serializes the hint object in the count request with a field name of "$hint" instead of "hint". When the server receives the incorrect count option "$hint", it is ignored. As a result, passing an options::count object to collection::count which has a hint set will have no effect. |
| Comments |
| Comment by Githook User [ 08/Oct/16 ] |
|
Author: {u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}Message: collection::count() was previously using the invalid count command |
| Comment by Githook User [ 08/Oct/16 ] |
|
Author: {u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}Message: The design of hint::to_document() is flawed in that it returns a To address this issue, this commit removes knowledge of the key name |
| Comment by Githook User [ 08/Oct/16 ] |
|
Author: {u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}Message: collection::count() was previously using the invalid count command |
| Comment by Githook User [ 08/Oct/16 ] |
|
Author: {u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}Message: The design of hint::to_document() is flawed in that it returns a To address this issue, this commit removes knowledge of the key name |
| Comment by J Rassi [ 22/Sep/16 ] |