diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2018-09-13 15:09:08 -0400 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2018-10-31 08:42:19 -0400 |
commit | 2be7f2677a40a863f336d2964f456c9d87ddc838 (patch) | |
tree | 968b48c9cb77e7669cf129d3592e7461bd2ed7df /src/mongo/db/pipeline/aggregation_context_fixture.h | |
parent | 236c6c28a18210586673097ee436c5b613b6c46f (diff) | |
download | mongo-2be7f2677a40a863f336d2964f456c9d87ddc838.tar.gz |
SERVER-17010 each Sorter instance spills to a single file rather than a new file per spill to disk
Diffstat (limited to 'src/mongo/db/pipeline/aggregation_context_fixture.h')
-rw-r--r-- | src/mongo/db/pipeline/aggregation_context_fixture.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/aggregation_context_fixture.h b/src/mongo/db/pipeline/aggregation_context_fixture.h index 009c10b42b0..aeacb8ec71e 100644 --- a/src/mongo/db/pipeline/aggregation_context_fixture.h +++ b/src/mongo/db/pipeline/aggregation_context_fixture.h @@ -36,6 +36,7 @@ #include "mongo/db/pipeline/expression_context_for_test.h" #include "mongo/db/service_context_test_fixture.h" #include "mongo/stdx/memory.h" +#include "mongo/unittest/temp_dir.h" #include "mongo/unittest/unittest.h" namespace mongo { @@ -54,6 +55,8 @@ public: // context. _expCtx = new ExpressionContext(_opCtx.get(), nullptr); _expCtx->ns = std::move(nss); + unittest::TempDir tempDir("AggregationContextFixture"); + _expCtx->tempDir = tempDir.path(); } boost::intrusive_ptr<ExpressionContext> getExpCtx() { |