diff options
author | Hari Khalsa <hkhalsa@10gen.com> | 2014-01-16 13:04:36 -0500 |
---|---|---|
committer | Hari Khalsa <hkhalsa@10gen.com> | 2014-01-16 13:04:36 -0500 |
commit | 692e238afc24d33a0282754e390f3b215bbaa91a (patch) | |
tree | 9be57eb109b2547112974db9a285c8dcfa1a15e4 /src/mongo/dbtests/query_stage_sort.cpp | |
parent | a65256c7d95911d40e3d015752e4eca1856f9f62 (diff) | |
download | mongo-692e238afc24d33a0282754e390f3b215bbaa91a.tar.gz |
SERVER-10026 update dbtests for keeping invalidated docs in query
Diffstat (limited to 'src/mongo/dbtests/query_stage_sort.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_sort.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/dbtests/query_stage_sort.cpp b/src/mongo/dbtests/query_stage_sort.cpp index 23842445255..2d432215612 100644 --- a/src/mongo/dbtests/query_stage_sort.cpp +++ b/src/mongo/dbtests/query_stage_sort.cpp @@ -294,7 +294,7 @@ namespace QueryStageSortTests { } ss->recoverFromYield(); - // After invalidating all our data, we have nothing left to sort. + // Invalidation of data in the sort stage fetches it but passes it through. int count = 0; while (!ss->isEOF()) { WorkingSetID id; @@ -306,8 +306,8 @@ namespace QueryStageSortTests { ++count; } - // Therefore, we expect an empty result set from running the sort stage to completion. - ASSERT_EQUALS(0, count); + // Returns all docs. + ASSERT_EQUALS(limit() ? limit() : numObj(), count); } }; |