this works against mongodb 2.7:
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:
That doesn't match, because in system.namespaces the names are db qualified:
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.