summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_internal.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-04-24 00:07:28 -0400
committerEliot Horowitz <eliot@10gen.com>2013-04-24 00:07:28 -0400
commit2edb8a4a4256a7d86ef2e2f5136c17c92e786c37 (patch)
tree2b5cf17ccf34f1e2e83cf99fc5faab5ee0d1008a /src/mongo/db/matcher/expression_internal.cpp
parentd5b73a85510f8620d14ce2b40b61bbef9cf3911f (diff)
downloadmongo-2edb8a4a4256a7d86ef2e2f5136c17c92e786c37.tar.gz
SERVER-6400 - fix case with indexes early field
Diffstat (limited to 'src/mongo/db/matcher/expression_internal.cpp')
-rw-r--r--src/mongo/db/matcher/expression_internal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_internal.cpp b/src/mongo/db/matcher/expression_internal.cpp
index 323549f8dda..18a2b606bdc 100644
--- a/src/mongo/db/matcher/expression_internal.cpp
+++ b/src/mongo/db/matcher/expression_internal.cpp
@@ -30,7 +30,7 @@ namespace mongo {
string pathToString( const FieldRef& path, int32_t size ) {
string res;
- if ( (size_t)size > path.numParts() ) {
+ if ( (size_t)size >= path.numParts() ) {
return res;
}