[CDRIVER-725] mongoc_collection_create_index should return index document Created: 26/Jun/15  Updated: 12/Sep/16  Resolved: 16/Jun/16

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: None
Fix Version/s: 1.5.0

Type: Bug Priority: Major - P3
Reporter: Marius Soutier Assignee: Ian Boros
Resolution: Done Votes: 0
Labels: intern2016
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-631 collection::create_index should retur... Closed

 Description   

The legacy driver would return the inserted index as a bson document. mongoc_collection_create_index should exhibit the same behavior.

This will require an enhanced new function, mongoc_collection_create_index_2 or something, that returns additional info.

History: we created mongoc_collection_create_index_2, renamed to mongoc_collection_create_index_with_write_concern, and now we're renaming it mongoc_collection_create_index_with_opts. All of this is for 1.5.0.



 Comments   
Comment by Githook User [ 15/Jun/16 ]

Author:

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

Message: Merge pull request #334 from puppyofkosh/CDRIVER-725

CDRIVER-725 added mongoc_collection_create_index_2 function
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/92a91cac824db5480f1c2a284bc2f0a259e52106

Comment by Githook User [ 15/Jun/16 ]

Author:

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

Message: Merge pull request #334 from puppyofkosh/CDRIVER-725

CDRIVER-725 added mongoc_collection_create_index_2 function
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/92a91cac824db5480f1c2a284bc2f0a259e52106

Comment by Githook User [ 15/Jun/16 ]

Author:

{u'name': u'ian boros', u'email': u'ian.boros@10gen.com'}

Message: CDRIVER-725 added mongoc_collection_create_index_2 function
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/dc9fd22d7d2a4524962bc9fda8dfddd69c8dc7c8

Comment by A. Jesse Jiryu Davis [ 10/Jun/16 ]

Correct.

Comment by Ian Boros [ 10/Jun/16 ]

Just to be sure, this *reply out argument should return the server's full response in bson?

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