Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
Fully Compatible
-
ALL
Description
this works against mongodb 2.7:
> db.runCommand({ listCollections : 1, filter : { name : "dbclient" } })
|
{
|
"collections" : [
|
{
|
"name" : "dbclient",
|
"options" : {
|
|
|
}
|
}
|
],
|
"ok" : 1
|
}
|
But the fallback code in the driver when running against a <2.7 server which does not offer the listCollections command attempts to query system.indexes with the same filter:
> db.system.namespaces.find({name : "dbclient"})
|
That doesn't match, because in system.namespaces the names are db qualified:
> db.system.namespaces.find({name : "test.dbclient"})
|
{ "name" : "test.dbclient" }
|
So the fallback code will need to make a new BSONObj that db qualifies any 'name' element in the filter.
Marking this ticket "driver changes needed" since fix will need to be backported to the legacy C++ driver.
Attachments
Issue Links
- is depended on by
-
CXX-311 Backport 540f9ec and associated fix from server when ready
-
- Closed
-
- links to