summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_change_stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document_source_change_stream.h')
-rw-r--r--src/mongo/db/pipeline/document_source_change_stream.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/mongo/db/pipeline/document_source_change_stream.h b/src/mongo/db/pipeline/document_source_change_stream.h
index 70357cd433e..182a9373e12 100644
--- a/src/mongo/db/pipeline/document_source_change_stream.h
+++ b/src/mongo/db/pipeline/document_source_change_stream.h
@@ -82,13 +82,17 @@ public:
void assertSupportsReadConcern(const repl::ReadConcernArgs& readConcern) const {
// Only "majority" is allowed for change streams.
- uassert(ErrorCodes::InvalidOptions,
- str::stream() << "$changeStream cannot run with a readConcern other than "
- << "'majority', or in a multi-document transaction. Current "
- "readConcern: "
- << readConcern.toString(),
- !readConcern.hasLevel() ||
- readConcern.getLevel() == repl::ReadConcernLevel::kMajorityReadConcern);
+ uassert(
+ ErrorCodes::InvalidOptions,
+ str::stream()
+ << "$changeStream cannot run with a readConcern other than 'majority'. Current "
+ << "readConcern: " << readConcern.toString(),
+ !readConcern.hasLevel() ||
+ readConcern.getLevel() == repl::ReadConcernLevel::kMajorityReadConcern);
+ }
+
+ void assertSupportsMultiDocumentTransaction() const {
+ transactionNotSupported(kStageName);
}
private: