summaryrefslogtreecommitdiff
path: root/src/mongo/client
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@10gen.com>2016-04-04 12:52:48 -0400
committerRobert Guo <robert.guo@10gen.com>2016-04-12 11:05:22 -0400
commit89a3de326d0e6a999149e7eca5fbab5c77f559b6 (patch)
treeb8116468ace7bad7660bff1a4bef38f74d9cd717 /src/mongo/client
parent3caa06819ab544bf9e88f4413c363a6439fe1998 (diff)
downloadmongo-89a3de326d0e6a999149e7eca5fbab5c77f559b6.tar.gz
SERVER-23297 consolidate namespace validation
Diffstat (limited to 'src/mongo/client')
-rw-r--r--src/mongo/client/dbclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/dbclient.cpp b/src/mongo/client/dbclient.cpp
index c7fafa1eec8..8500868a46f 100644
--- a/src/mongo/client/dbclient.cpp
+++ b/src/mongo/client/dbclient.cpp
@@ -760,7 +760,7 @@ list<BSONObj> DBClientWithCommands::getCollectionInfos(const string& db, const B
while (c->more()) {
BSONObj obj = c->nextSafe();
string ns = obj["name"].valuestr();
- if (ns.find("$") != string::npos)
+ if (NamespaceString::virtualized(ns))
continue;
BSONObjBuilder b;
b.append("name", ns.substr(db.size() + 1));