diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2016-10-13 18:15:32 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2016-11-04 19:12:51 -0400 |
commit | f00448255bbb24c07e2f55e7e229f19e316350a6 (patch) | |
tree | a00435a63185256c3f27dfae0f97cff745459973 /src/mongo/s/config_server_test_fixture.cpp | |
parent | 361efe3a8d6675b258b92a6f701a98123c4b613d (diff) | |
download | mongo-f00448255bbb24c07e2f55e7e229f19e316350a6.tar.gz |
SERVER-26202 Relax index constraints in oplog application
Diffstat (limited to 'src/mongo/s/config_server_test_fixture.cpp')
-rw-r--r-- | src/mongo/s/config_server_test_fixture.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/s/config_server_test_fixture.cpp b/src/mongo/s/config_server_test_fixture.cpp index 4261d037073..95189db6ae5 100644 --- a/src/mongo/s/config_server_test_fixture.cpp +++ b/src/mongo/s/config_server_test_fixture.cpp @@ -46,6 +46,7 @@ #include "mongo/db/repl/oplog.h" #include "mongo/db/repl/read_concern_args.h" #include "mongo/db/repl/repl_settings.h" +#include "mongo/db/repl/replication_coordinator_mock.h" #include "mongo/executor/network_interface_mock.h" #include "mongo/executor/task_executor_pool.h" #include "mongo/executor/thread_pool_task_executor_test_fixture.h" @@ -98,6 +99,9 @@ ConfigServerTestFixture::~ConfigServerTestFixture() = default; void ConfigServerTestFixture::setUp() { ShardingMongodTestFixture::setUp(); + // TODO: SERVER-26919 set the flag on the mock repl coordinator just for the window where it + // actually needs to bypass the op observer. + replicationCoordinator()->alwaysAllowWrites(true); // Initialize sharding components as a config server. serverGlobalParams.clusterRole = ClusterRole::ConfigServer; |