summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_out.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-12-16 22:14:42 +0000
committerevergreen <evergreen@mongodb.com>2019-12-16 22:14:42 +0000
commit02f873aa68c80f0b53f006addbf0a60aba6cc89c (patch)
tree53d72c96529d436124d76724e79c9f5f774313d9 /src/mongo/db/pipeline/document_source_out.cpp
parent0cf959f95a5e2360c5340e6d6a75b2a69690e827 (diff)
downloadmongo-02f873aa68c80f0b53f006addbf0a60aba6cc89c.tar.gz
SERVER-44897 remove MongoProcessInterface::setOperationContext()
Diffstat (limited to 'src/mongo/db/pipeline/document_source_out.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_out.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/db/pipeline/document_source_out.cpp b/src/mongo/db/pipeline/document_source_out.cpp
index c0aade5b099..b5c1a0e3e9a 100644
--- a/src/mongo/db/pipeline/document_source_out.cpp
+++ b/src/mongo/db/pipeline/document_source_out.cpp
@@ -72,11 +72,6 @@ DocumentSourceOut::~DocumentSourceOut() {
DocumentSourceWriteBlock writeBlock(cleanupOpCtx.get());
- // Reset the operation context back to original once dropCollection is done.
- ON_BLOCK_EXIT(
- [this] { pExpCtx->mongoProcessInterface->setOperationContext(pExpCtx->opCtx); });
-
- pExpCtx->mongoProcessInterface->setOperationContext(cleanupOpCtx.get());
pExpCtx->mongoProcessInterface->dropCollection(cleanupOpCtx.get(), _tempNs);
});
}