diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-09-05 11:23:54 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-09-13 14:44:09 -0400 |
commit | fe125855b6b3e8feb9d7d666338a7f2d29d301ad (patch) | |
tree | c682c408675b895bd343dd7187de8be18e875f66 /src/mongo/db/pipeline/expression_context.h | |
parent | 61d1cfbf2c8521126506c12bcd2d187a7926fbe0 (diff) | |
download | mongo-fe125855b6b3e8feb9d7d666338a7f2d29d301ad.tar.gz |
SERVER-29142 Support $changeStream on unsharded collections.
Diffstat (limited to 'src/mongo/db/pipeline/expression_context.h')
-rw-r--r-- | src/mongo/db/pipeline/expression_context.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/expression_context.h b/src/mongo/db/pipeline/expression_context.h index ad7052968c1..037f1b81383 100644 --- a/src/mongo/db/pipeline/expression_context.h +++ b/src/mongo/db/pipeline/expression_context.h @@ -43,6 +43,7 @@ #include "mongo/db/pipeline/variables.h" #include "mongo/db/query/collation/collator_interface.h" #include "mongo/db/query/explain_options.h" +#include "mongo/db/query/tailable_mode.h" #include "mongo/util/intrusive_counter.h" #include "mongo/util/string_map.h" @@ -58,8 +59,6 @@ public: std::vector<BSONObj> pipeline; }; - enum class TailableMode { kNormal, kTailableAndAwaitData }; - /** * Constructs an ExpressionContext to be used for Pipeline parsing and evaluation. * 'resolvedNamespaces' maps collection names (not full namespaces) to ResolvedNamespaces. @@ -107,7 +106,7 @@ public: * Convenience call that returns true if the tailableMode indicate a tailable query. */ bool isTailable() const { - return tailableMode == ExpressionContext::TailableMode::kTailableAndAwaitData; + return tailableMode == TailableMode::kTailableAndAwaitData; } // The explain verbosity requested by the user, or boost::none if no explain was requested. |