[SERVER-69613] Provide an API to listDatabasesForAllTenants Created: 13/Sep/22 Updated: 05/Dec/22 Resolved: 14/Sep/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Rishab Joshi (Inactive) | Assignee: | [DO NOT USE] Backlog - Server Serverless (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Serverless
|
| Participants: |
| Description |
|
Rather than calling DBDirectClient over listDatabasesForAllTenants to retrieve tenants' databases, there should be a helper function/API that would do the same. |
| Comments |
| Comment by Janna Golden [ 14/Sep/22 ] |
|
There are two ways to get this information already today - calling into either the StorageEngine or the CollectionCatalog - `StorageEngineImpl::listDatabases()` and `CollectionCatalog::getAllDbNames()` provide all the DatabaseNames that exist on the mongod. The listDatabasesForAllTenants command just essentially wraps these functions. Closing this as won't fix. |