diff options
author | Robert Guo <robert.guo@10gen.com> | 2016-04-04 12:52:48 -0400 |
---|---|---|
committer | Robert Guo <robert.guo@10gen.com> | 2016-04-12 11:05:22 -0400 |
commit | 89a3de326d0e6a999149e7eca5fbab5c77f559b6 (patch) | |
tree | b8116468ace7bad7660bff1a4bef38f74d9cd717 /src/mongo/client | |
parent | 3caa06819ab544bf9e88f4413c363a6439fe1998 (diff) | |
download | mongo-89a3de326d0e6a999149e7eca5fbab5c77f559b6.tar.gz |
SERVER-23297 consolidate namespace validation
Diffstat (limited to 'src/mongo/client')
-rw-r--r-- | src/mongo/client/dbclient.cpp | 2 |
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)); |