diff options
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; |