diff options
author | Cheahuychou Mao <cheahuychou.mao@mongodb.com> | 2018-08-23 18:26:18 -0400 |
---|---|---|
committer | Cheahuychou Mao <cheahuychou.mao@mongodb.com> | 2018-08-24 13:38:18 -0400 |
commit | 62a453c0bf4f4be713c079cec178d5b40e251862 (patch) | |
tree | 49cd13f1ad382c044734cbf0522ced4d9e9c9c49 /src/mongo/s/commands | |
parent | 323ee94e5a7f67e9843778bc369c8b855fd7fafb (diff) | |
download | mongo-62a453c0bf4f4be713c079cec178d5b40e251862.tar.gz |
SERVER-35643 Allow atClusterTime when enableTestCommands is false
Diffstat (limited to 'src/mongo/s/commands')
-rw-r--r-- | src/mongo/s/commands/cluster_command_test_fixture.cpp | 3 | ||||
-rw-r--r-- | src/mongo/s/commands/strategy.cpp | 4 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/s/commands/cluster_command_test_fixture.cpp b/src/mongo/s/commands/cluster_command_test_fixture.cpp index d11c78d6fa4..2d3bec52e9c 100644 --- a/src/mongo/s/commands/cluster_command_test_fixture.cpp +++ b/src/mongo/s/commands/cluster_command_test_fixture.cpp @@ -62,9 +62,6 @@ void ClusterCommandTestFixture::setUp() { LogicalTimeValidator::set(getServiceContext(), std::move(validator)); LogicalSessionCache::set(getServiceContext(), stdx::make_unique<LogicalSessionCacheNoop>()); - - // ReadConcern 'snapshot' is only supported with test commands enabled. - setTestCommandsEnabled(true); } void ClusterCommandTestFixture::expectReturnsError(ErrorCodes::Error code) { diff --git a/src/mongo/s/commands/strategy.cpp b/src/mongo/s/commands/strategy.cpp index bd0fa78ac30..fd2d3d7a840 100644 --- a/src/mongo/s/commands/strategy.cpp +++ b/src/mongo/s/commands/strategy.cpp @@ -222,10 +222,6 @@ void execCommandClient(OperationContext* opCtx, auto& readConcernArgs = repl::ReadConcernArgs::get(opCtx); if (readConcernArgs.getLevel() == repl::ReadConcernLevel::kSnapshotReadConcern) { - uassert(ErrorCodes::InvalidOptions, - "readConcern level snapshot is not supported on mongos", - getTestCommandsEnabled()); - // TODO SERVER-33708. if (!invocation->supportsReadConcern(readConcernArgs.getLevel())) { auto body = result->getBodyBuilder(); |