[CDRIVER-1543] Note mongoc_client_command's unused params Created: 14/Sep/16  Updated: 05/May/17  Resolved: 05/May/17

Status: Closed
Project: C Driver
Component/s: docs
Affects Version/s: None
Fix Version/s: 1.7.0

Type: Improvement Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

skip, batch_size, limit, and fields never had any effect.

Of possible flags values, only NONE and SLAVE_OK make sense, and SLAVE_OK is superseded by read_prefs. TAILABLE causes an error the driver tries to set nToReturn to 0, which the server rejects for commands. Other flag values are sent to the server without effect.

mongoc_cursor_t *
mongoc_client_command (mongoc_client_t           *client,
                       const char                *db_name,
                       mongoc_query_flags_t       flags,
                       uint32_t                   skip,
                       uint32_t                   limit,
                       uint32_t                   batch_size,
                       const bson_t              *query,
                       const bson_t              *fields,
                       const mongoc_read_prefs_t *read_prefs)



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

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1543 update mongoc_client_command doc
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/3b55ef7882a590cef6a30c63e641659607cee49b

Generated at Wed Feb 07 21:12:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.