diff options
author | Bernard Gorman <bernard.gorman@gmail.com> | 2017-09-26 11:46:58 -0400 |
---|---|---|
committer | Bernard Gorman <bernard.gorman@gmail.com> | 2017-09-27 22:12:14 -0400 |
commit | 55637833c707998f685f997d43624c52cde99b45 (patch) | |
tree | bbc00a719c14983e8984d1dbe8dbddd074e023a7 /src/mongo/db/pipeline/document_source_sort_test.cpp | |
parent | 22c34669f744ea245c14a64c556d61f8932ceda9 (diff) | |
download | mongo-55637833c707998f685f997d43624c52cde99b45.tar.gz |
SERVER-30871 Permit blocking aggregation stages to run on mongoS if allowDiskUse is false
Diffstat (limited to 'src/mongo/db/pipeline/document_source_sort_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_sort_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/document_source_sort_test.cpp b/src/mongo/db/pipeline/document_source_sort_test.cpp index 25362138a9c..2bc39427a37 100644 --- a/src/mongo/db/pipeline/document_source_sort_test.cpp +++ b/src/mongo/db/pipeline/document_source_sort_test.cpp @@ -402,7 +402,7 @@ TEST_F(DocumentSourceSortExecutionTest, ShouldBeAbleToPauseLoadingWhileSpilled) // Allow the $sort stage to spill to disk. unittest::TempDir tempDir("DocumentSourceSortTest"); expCtx->tempDir = tempDir.path(); - expCtx->extSortAllowed = true; + expCtx->allowDiskUse = true; const size_t maxMemoryUsageBytes = 1000; auto sort = DocumentSourceSort::create(expCtx, BSON("_id" << -1), -1, maxMemoryUsageBytes); @@ -436,7 +436,7 @@ TEST_F(DocumentSourceSortExecutionTest, ShouldBeAbleToPauseLoadingWhileSpilled) TEST_F(DocumentSourceSortExecutionTest, ShouldErrorIfNotAllowedToSpillToDiskAndResultSetIsTooLarge) { auto expCtx = getExpCtx(); - expCtx->extSortAllowed = false; + expCtx->allowDiskUse = false; const size_t maxMemoryUsageBytes = 1000; auto sort = DocumentSourceSort::create(expCtx, BSON("_id" << -1), -1, maxMemoryUsageBytes); @@ -451,7 +451,7 @@ TEST_F(DocumentSourceSortExecutionTest, TEST_F(DocumentSourceSortExecutionTest, ShouldCorrectlyTrackMemoryUsageBetweenPauses) { auto expCtx = getExpCtx(); - expCtx->extSortAllowed = false; + expCtx->allowDiskUse = false; const size_t maxMemoryUsageBytes = 1000; auto sort = DocumentSourceSort::create(expCtx, BSON("_id" << -1), -1, maxMemoryUsageBytes); |