summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_change_stream.cpp
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2018-04-13 13:35:54 -0400
committerCharlie Swanson <charlie.swanson@mongodb.com>2018-04-13 16:18:35 -0400
commit2f5da2d8e05cfb461539fca31ad40f8fb6d0b532 (patch)
tree8a3515deccf97ac06d3183bcd79227dfdb712a20 /src/mongo/db/pipeline/document_source_change_stream.cpp
parenta820491e9402a52d7575157a9897306d49129370 (diff)
downloadmongo-2f5da2d8e05cfb461539fca31ad40f8fb6d0b532.tar.gz
SERVER-34283 Allow change streams on whole-db or whole-cluster
Diffstat (limited to 'src/mongo/db/pipeline/document_source_change_stream.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_change_stream.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/db/pipeline/document_source_change_stream.cpp b/src/mongo/db/pipeline/document_source_change_stream.cpp
index 70b69b14cda..40e12524f9e 100644
--- a/src/mongo/db/pipeline/document_source_change_stream.cpp
+++ b/src/mongo/db/pipeline/document_source_change_stream.cpp
@@ -34,7 +34,6 @@
#include "mongo/db/bson/bson_helper.h"
#include "mongo/db/catalog/uuid_catalog.h"
#include "mongo/db/commands/feature_compatibility_version_documentation.h"
-#include "mongo/db/commands/test_commands_enabled.h"
#include "mongo/db/logical_clock.h"
#include "mongo/db/pipeline/change_stream_constants.h"
#include "mongo/db/pipeline/document_path_support.h"
@@ -539,14 +538,6 @@ void DocumentSourceChangeStream::assertIsLegalSpecification(
const intrusive_ptr<ExpressionContext>& expCtx,
const DocumentSourceChangeStreamSpec& spec,
ServerGlobalParams::FeatureCompatibility::Version fcv) {
- // Prevent $changeStream from running on an entire database (or cluster-wide) unless we are in
- // test mode.
- // TODO SERVER-34283: remove once whole-database $changeStream is feature-complete.
- uassert(ErrorCodes::QueryFeatureNotAllowed,
- "Running $changeStream on an entire database or cluster is not permitted unless the "
- "deployment is in test mode.",
- !(expCtx->ns.isCollectionlessAggregateNS() && !getTestCommandsEnabled()));
-
// Change stream on an entire database is a new 4.0 feature.
uassert(ErrorCodes::QueryFeatureNotAllowed,
str::stream() << "$changeStream on an entire database is not allowed in the current "