summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_out.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-12-16 18:27:41 +0000
committerevergreen <evergreen@mongodb.com>2019-12-16 18:27:41 +0000
commit4cba7e97d3561efe26a7145c03bb91648343f396 (patch)
tree0af6b760c04efa993201e357d76eaa7831d68729 /src/mongo/db/pipeline/document_source_out.cpp
parentd38d7026a4fcd5e524b3d35e405d49e4ac8989c3 (diff)
downloadmongo-4cba7e97d3561efe26a7145c03bb91648343f396.tar.gz
SERVER-44897 rename MongoProcessInterface::createIndexes() to createIndexesOnEmptyCollection()
Diffstat (limited to 'src/mongo/db/pipeline/document_source_out.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_out.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_out.cpp b/src/mongo/db/pipeline/document_source_out.cpp
index 18a093ae338..c0aade5b099 100644
--- a/src/mongo/db/pipeline/document_source_out.cpp
+++ b/src/mongo/db/pipeline/document_source_out.cpp
@@ -182,7 +182,8 @@ void DocumentSourceOut::initialize() {
try {
std::vector<BSONObj> tempNsIndexes = {std::begin(_originalIndexes),
std::end(_originalIndexes)};
- pExpCtx->mongoProcessInterface->createIndexes(pExpCtx->opCtx, _tempNs, tempNsIndexes);
+ pExpCtx->mongoProcessInterface->createIndexesOnEmptyCollection(
+ pExpCtx->opCtx, _tempNs, tempNsIndexes);
} catch (DBException& ex) {
ex.addContext("Copying indexes for $out failed");
throw;