summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/documentsourcetests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/documentsourcetests.cpp')
-rw-r--r--src/mongo/dbtests/documentsourcetests.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/dbtests/documentsourcetests.cpp b/src/mongo/dbtests/documentsourcetests.cpp
index a50663eea13..076b8bafe3f 100644
--- a/src/mongo/dbtests/documentsourcetests.cpp
+++ b/src/mongo/dbtests/documentsourcetests.cpp
@@ -23,6 +23,7 @@
#include "mongo/db/interrupt_status_mongod.h"
#include "mongo/db/pipeline/document_source.h"
#include "mongo/db/pipeline/expression_context.h"
+#include "mongo/db/storage_options.h"
#include "mongo/dbtests/dbtests.h"
namespace DocumentSourceTests {
@@ -105,7 +106,7 @@ namespace DocumentSourceTests {
public:
Base()
: _ctx(new ExpressionContext(InterruptStatusMongod::status, NamespaceString(ns)))
- { _ctx->tempDir = dbpath + "/_tmp"; }
+ { _ctx->tempDir = storageGlobalParams.dbpath + "/_tmp"; }
protected:
void createSource() {
Client::ReadContext ctx (ns);
@@ -411,7 +412,7 @@ namespace DocumentSourceTests {
intrusive_ptr<ExpressionContext> expressionContext =
new ExpressionContext(InterruptStatusMongod::status, NamespaceString(ns));
expressionContext->inShard = inShard;
- expressionContext->tempDir = dbpath + "/_tmp";
+ expressionContext->tempDir = storageGlobalParams.dbpath + "/_tmp";
_group = DocumentSourceGroup::createFromBson( &specElement, expressionContext );
assertRoundTrips( _group );