summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/list_databases.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-07-10 12:06:12 -0400
committerEliot Horowitz <eliot@10gen.com>2014-07-14 21:19:16 -0400
commitf8b4e1287bd3b246f6a80f4308b44cb094b76aa6 (patch)
tree16b96c65a4835923cd89e87e70370277e7ee570b /src/mongo/db/commands/list_databases.cpp
parentdf27bbcf24db28fa68bfd264f0d3883c0e33320e (diff)
downloadmongo-f8b4e1287bd3b246f6a80f4308b44cb094b76aa6.tar.gz
SERVER-2442: clean up listCollections
Diffstat (limited to 'src/mongo/db/commands/list_databases.cpp')
-rw-r--r--src/mongo/db/commands/list_databases.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/list_databases.cpp b/src/mongo/db/commands/list_databases.cpp
index 725b8e45bf5..de1d13eddae 100644
--- a/src/mongo/db/commands/list_databases.cpp
+++ b/src/mongo/db/commands/list_databases.cpp
@@ -78,7 +78,7 @@ namespace mongo {
totalSize += size;
{
- Client::ReadContext rc(txn, *i + ".system.namespaces");
+ Client::ReadContext rc(txn, *i );
b.appendBool( "empty", rc.ctx().db()->getDatabaseCatalogEntry()->isEmpty() );
}