summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/pipeline_command.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2013-09-25 17:33:02 -0400
committerMathias Stearn <mathias@10gen.com>2013-09-27 17:12:50 -0400
commit7e206a4fa6e9aa6ea283f4da3daec127c41f88b5 (patch)
tree6ca405c0581b3a7a4db60641c984d96d610468bb /src/mongo/db/commands/pipeline_command.cpp
parent152e2750461f8410010a30f95431e43314f131ab (diff)
downloadmongo-7e206a4fa6e9aa6ea283f4da3daec127c41f88b5.tar.gz
SERVER-10868 Step 3: Pass the temporary directory into Sorter
This removes the direct link-time dependency on dbpath from Sorter and the aggregation DocumentSources that use it. After this commit dbpath can once-again be removed from mongos. Not making that change now however to avoid colliding with Shaun's work. Prep for SERVER-10868: move external sort tests out of dbtests
Diffstat (limited to 'src/mongo/db/commands/pipeline_command.cpp')
-rw-r--r--src/mongo/db/commands/pipeline_command.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/commands/pipeline_command.cpp b/src/mongo/db/commands/pipeline_command.cpp
index aeb7e547ef5..b103dba8588 100644
--- a/src/mongo/db/commands/pipeline_command.cpp
+++ b/src/mongo/db/commands/pipeline_command.cpp
@@ -227,6 +227,7 @@ namespace mongo {
intrusive_ptr<ExpressionContext> pCtx =
new ExpressionContext(InterruptStatusMongod::status, NamespaceString(ns));
+ pCtx->tempDir = dbpath + "/_tmp";
/* try to parse the command; if this fails, then we didn't run */
intrusive_ptr<Pipeline> pPipeline = Pipeline::parseCommand(errmsg, cmdObj, pCtx);