[CXX-802] coll.drop() throws if collection doesn't exist Created: 06/Jan/16  Updated: 11/Jan/16  Resolved: 06/Jan/16

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: Tess Avitabile (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: C++11 Driver MongoDB 3.2

 Description   

Currently, you must surround calls to coll.drop() with a check to see if the collection exists before trying to drop it. It seems like this shouldn't be necessary.



 Comments   
Comment by Githook User [ 06/Jan/16 ]

Author:

{u'username': u'tessavitabile', u'name': u'Tess Avitabile', u'email': u'tess.avitabile@mongodb.com'}

Message: CXX-802 - coll.drop() no longer throws if collection doesn't exist
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/4c52f54abf39eda092287e3406b4a4d8b6d565d6

Comment by Tess Avitabile (Inactive) [ 06/Jan/16 ]

https://github.com/mongodb/mongo-cxx-driver/pull/421

Comment by Githook User [ 06/Jan/16 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: CXX-802 Fix example to check before dropping collection
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/80924584aba007eb66670f787e4b922de22f2a71

Comment by Andrew Morrow (Inactive) [ 06/Jan/16 ]

Definitely a bad user experience. I've put it in rc0 because it seems like it should be easy.

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