diff options
author | Aaron <aaron@10gen.com> | 2009-02-26 11:08:23 -0500 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-02-26 11:08:23 -0500 |
commit | f1ad2c2875f410af07070083fd03317c662a50f6 (patch) | |
tree | 2af8cfbc8c3364f5945c2538b98e206de510854e /db/namespace.cpp | |
parent | 851e5545a1da9dbcca0b7e8273655760190d779b (diff) | |
download | mongo-f1ad2c2875f410af07070083fd03317c662a50f6.tar.gz |
Adjust dependencies
Diffstat (limited to 'db/namespace.cpp')
-rw-r--r-- | db/namespace.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/db/namespace.cpp b/db/namespace.cpp index 7d64d347525..456726f4cb4 100644 --- a/db/namespace.cpp +++ b/db/namespace.cpp @@ -25,6 +25,7 @@ #include <algorithm> #include <list> #include "query.h" +#include "queryutil.h" #include "json.h" namespace mongo { @@ -504,6 +505,11 @@ namespace mongo { map<string,NamespaceDetailsTransient*> NamespaceDetailsTransient::map; typedef map<string,NamespaceDetailsTransient*>::iterator ouriter; + void NamespaceDetailsTransient::reset() { + clearQueryCache( ns.c_str() ); + haveIndexKeys = false; + } + NamespaceDetailsTransient& NamespaceDetailsTransient::get(const char *ns) { NamespaceDetailsTransient*& t = map[ns]; if ( t == 0 ) |