diff options
author | Aaron <aaron@10gen.com> | 2012-01-16 21:58:06 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2012-01-18 17:31:09 -0800 |
commit | a7b3d8fa55eba9a79b0642c0dc02c99798feb36c (patch) | |
tree | d290fd787588fbe46d77f9b9c290ef387d0e721c /src/mongo/db/commands/distinct.cpp | |
parent | d8c1ea9cb4f72f666e7a09054032ac6ab3d52cf6 (diff) | |
download | mongo-a7b3d8fa55eba9a79b0642c0dc02c99798feb36c.tar.gz |
move bestGuessCursor to NamespaceDetailsTransient, move isSimpleIdQuery to queryutil, clean query related includes
Diffstat (limited to 'src/mongo/db/commands/distinct.cpp')
-rw-r--r-- | src/mongo/db/commands/distinct.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/commands/distinct.cpp b/src/mongo/db/commands/distinct.cpp index 1926e6abddb..fb72eb197dd 100644 --- a/src/mongo/db/commands/distinct.cpp +++ b/src/mongo/db/commands/distinct.cpp @@ -18,7 +18,6 @@ //#include "pch.h" #include "../commands.h" #include "../instance.h" -#include "../queryoptimizer.h" #include "../clientcursor.h" #include "../../util/timer.h" @@ -78,7 +77,9 @@ namespace mongo { continue; if ( idx.inKeyPattern( key ) ) { - cursor = bestGuessCursor( ns.c_str() , BSONObj() , idx.keyPattern() ); + cursor = NamespaceDetailsTransient::bestGuessCursor( ns.c_str() , + BSONObj() , + idx.keyPattern() ); if( cursor.get() ) break; } |