Currently listCollections does a query on the durable catalog. It would be faster and simpler to iterate through the CollectionCatalog.
It is thought that the durable read was required in order to support the mmap storage engine, which is no longer supported as of v4.0.
- depends on
SERVER-67289 Remove Feature Flag for PM-2218
- related to
SERVER-53829 Make listCollections and listIndexes commands lock free