diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2016-02-02 14:34:33 -0500 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2016-02-04 19:38:27 -0500 |
commit | ebc481d27e408d8608075a61eba2a68be43c1314 (patch) | |
tree | 15a687d4a35907b4ed9cad98df591b9e31b26f78 /src/mongo/dbtests | |
parent | 8d9c1a2cae9969ed5e5524e7f23f0a2bc3376982 (diff) | |
download | mongo-ebc481d27e408d8608075a61eba2a68be43c1314.tar.gz |
SERVER-20536 Ignore comment field when planning counts.
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r-- | src/mongo/dbtests/query_stage_count.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/dbtests/query_stage_count.cpp b/src/mongo/dbtests/query_stage_count.cpp index c1becf08025..ed68c51feac 100644 --- a/src/mongo/dbtests/query_stage_count.cpp +++ b/src/mongo/dbtests/query_stage_count.cpp @@ -154,11 +154,13 @@ public: scan = createCollScan(expression.get(), ws.get()); } - CountStage countStage(&_txn, _coll, request, ws.get(), scan); + const bool useRecordStoreCount = false; + CountStageParams params(request, useRecordStoreCount); + CountStage countStage(&_txn, _coll, std::move(params), ws.get(), scan); const CountStats* stats = runCount(countStage); - ASSERT_FALSE(stats->trivialCount); + ASSERT_FALSE(stats->recordStoreCount); ASSERT_EQUALS(stats->nCounted, expected_n); ASSERT_EQUALS(stats->nSkipped, request.getSkip()); } |