diff options
author | David Storch <david.storch@10gen.com> | 2015-12-14 14:43:08 -0500 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2015-12-21 16:28:22 -0500 |
commit | 56dba2953b622efcae75d7bd9b6aa4154dd25d34 (patch) | |
tree | a5509777ef6324edd6f710a44bd0973065c44422 /src/mongo/db/exec/plan_stats.h | |
parent | 6bfa81cae0b0fee124065c1f38de339fd4f3dc7c (diff) | |
download | mongo-56dba2953b622efcae75d7bd9b6aa4154dd25d34.tar.gz |
SERVER-17011 add EnsureSorted stage
Preserves the sort order for 'ntoreturn hack' plans.
Diffstat (limited to 'src/mongo/db/exec/plan_stats.h')
-rw-r--r-- | src/mongo/db/exec/plan_stats.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mongo/db/exec/plan_stats.h b/src/mongo/db/exec/plan_stats.h index 14e07391920..7587aa47da8 100644 --- a/src/mongo/db/exec/plan_stats.h +++ b/src/mongo/db/exec/plan_stats.h @@ -298,6 +298,18 @@ struct DistinctScanStats : public SpecificStats { BSONObj indexBounds; }; +struct EnsureSortedStats : public SpecificStats { + EnsureSortedStats() : nDropped(0) {} + + SpecificStats* clone() const final { + EnsureSortedStats* specific = new EnsureSortedStats(*this); + return specific; + } + + // The number of out-of-order results that were dropped. + long long nDropped; +}; + struct FetchStats : public SpecificStats { FetchStats() : alreadyHasObj(0), forcedFetches(0), docsExamined(0) {} |