summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/stage_types.h
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2014-01-16 16:14:05 -0500
committerHari Khalsa <hkhalsa@10gen.com>2014-01-21 13:04:51 -0500
commit5df691c9c829b6ef1666b41943e13e72c9a89520 (patch)
treef4d1884705263605987a8aa89a5a558a78ac38be /src/mongo/db/query/stage_types.h
parentc9fc8a468e1fa9d6421ef35f5a23db0e0f014b4f (diff)
downloadmongo-5df691c9c829b6ef1666b41943e13e72c9a89520.tar.gz
SERVER-12113 keep mutated docs in query results when it's sane to
Diffstat (limited to 'src/mongo/db/query/stage_types.h')
-rw-r--r--src/mongo/db/query/stage_types.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mongo/db/query/stage_types.h b/src/mongo/db/query/stage_types.h
index 87f1b1f318c..d1ade1f93c4 100644
--- a/src/mongo/db/query/stage_types.h
+++ b/src/mongo/db/query/stage_types.h
@@ -37,12 +37,18 @@ namespace mongo {
STAGE_AND_HASH,
STAGE_AND_SORTED,
STAGE_COLLSCAN,
+
+ // This is more of an "internal-only" stage where we try to keep docs that were mutated
+ // during query execution.
+ STAGE_KEEP_MUTATIONS,
+
STAGE_FETCH,
- // TODO: This is probably an expression index, but would take even more time than
- // STAGE_2DSPHERE to straighten out.
+ // TODO: This is secretly an expression index but we need geometry -> covering for our
+ // geohash.
STAGE_GEO_2D,
- // The two $geoNear impls imply a fetch+sort and as such are not IXSCANs.
+
+ // The two $geoNear impls imply a fetch+sort and must be stages.
STAGE_GEO_NEAR_2D,
STAGE_GEO_NEAR_2DSPHERE,