Skip to content

Commit f8b4e12

Browse files
committed
SERVER-2442: clean up listCollections
1 parent df27bbc commit f8b4e12

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/mongo/db/auth/role_graph_builtin_roles.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ namespace {
115115
<< ActionType::dbStats
116116
<< ActionType::find
117117
<< ActionType::killCursors
118+
<< ActionType::listCollections
118119
<< ActionType::planCacheRead;
119120

120121
// Read-write role

src/mongo/db/commands/list_databases.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ namespace mongo {
7878
totalSize += size;
7979

8080
{
81-
Client::ReadContext rc(txn, *i + ".system.namespaces");
81+
Client::ReadContext rc(txn, *i );
8282
b.appendBool( "empty", rc.ctx().db()->getDatabaseCatalogEntry()->isEmpty() );
8383
}
8484

0 commit comments

Comments
 (0)