[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: |
|
||||||||
| 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 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. |