summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_single_document_transformation.h
diff options
context:
space:
mode:
authorNick Zolnierz <nicholas.zolnierz@mongodb.com>2018-02-02 15:29:55 -0500
committerNick Zolnierz <nicholas.zolnierz@mongodb.com>2018-02-05 11:34:52 -0500
commit838420937dc71c8128a0b3b59f11fbe666762902 (patch)
tree0fc636eca611c1c7e9b9f3f6b73fda9a6c08bf5e /src/mongo/db/pipeline/document_source_single_document_transformation.h
parent0a08faf1480282e8db11086050eac3f9e7aaa5be (diff)
downloadmongo-838420937dc71c8128a0b3b59f11fbe666762902.tar.gz
SERVER-33084: Aggregate with explain >= 'executionStats' attempts to serialize a disposed pipeline
Diffstat (limited to 'src/mongo/db/pipeline/document_source_single_document_transformation.h')
-rw-r--r--src/mongo/db/pipeline/document_source_single_document_transformation.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_single_document_transformation.h b/src/mongo/db/pipeline/document_source_single_document_transformation.h
index 6b18e8cd74d..22689123099 100644
--- a/src/mongo/db/pipeline/document_source_single_document_transformation.h
+++ b/src/mongo/db/pipeline/document_source_single_document_transformation.h
@@ -142,6 +142,10 @@ private:
// Specific name of the transformation.
std::string _name;
+
+ // Cached stage options in case this DocumentSource is disposed before serialized (e.g. explain
+ // with a sort which will auto-dispose of the pipeline).
+ Document _cachedStageOptions;
};
} // namespace mongo