summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source.h
diff options
context:
space:
mode:
authorMinji <minjikim0202@gmail.com>2018-07-19 18:10:21 -0400
committerMinji <minjikim0202@gmail.com>2018-08-01 16:36:57 -0400
commit114b1e828ebba521c440a015a7d02318f96efe55 (patch)
treef0701259adea2b43be64095aff0bc4938a3a4590 /src/mongo/db/pipeline/document_source.h
parent00bf585d027eedcda47d6082920dad0dde93d3f4 (diff)
downloadmongo-114b1e828ebba521c440a015a7d02318f96efe55.tar.gz
SERVER-19260 Log whether allowDiskUse:true aggregations used disk
Diffstat (limited to 'src/mongo/db/pipeline/document_source.h')
-rw-r--r--src/mongo/db/pipeline/document_source.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source.h b/src/mongo/db/pipeline/document_source.h
index 580a2fabc93..4aae392153d 100644
--- a/src/mongo/db/pipeline/document_source.h
+++ b/src/mongo/db/pipeline/document_source.h
@@ -496,6 +496,10 @@ public:
virtual void reattachToOperationContext(OperationContext* opCtx) {}
+ virtual bool usedDisk() {
+ return false;
+ };
+
/**
* Create a DocumentSource pipeline stage from 'stageObj'.
*/