[CXX-345] Use listCollections command for helper method Created: 18/Sep/14  Updated: 23/Oct/14  Resolved: 07/Oct/14

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: legacy-1.0.0-rc1

Type: Task Priority: Major - P3
Reporter: Barrie Segal Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-179 Use listCollections command for helpe... Closed

 Comments   
Comment by Adam Midvidy [ 07/Oct/14 ]

Since listCollections is not in the _secOkCmdList, we will automatically route it to the primary, regardless of default read preference. As such, I think we are in compliance with the spec and there is no further work to be done.

Comment by Adam Midvidy [ 29/Sep/14 ]

I think our implementation of filtering needs work (possibly needs to be done on the server as well)

Due to SERVER-14951, we need to namespace-qualify any filters on the collection name with the name of the db in the fallback path for old servers.

While this is sufficient for a simple equality filter (e.g.)

{name: "mycollection"}

->

{name: "mydb.mycollection"}

it won't work with e.g. regular expressions (e.g)

{name: /cool/ }

should become

{name: /^mydb\..*cool/}

?

This seems difficult to solve in the general case, however. We might just want to restrict filters on collection name to simple equality.

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