diff options
author | Randolph Tan <randolph@10gen.com> | 2016-06-17 12:59:02 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2016-06-21 14:01:49 -0400 |
commit | 435048a90c6f5587cb565a4131f3d11c8ee4130d (patch) | |
tree | ba16e098235162a0bfe6138a97be974a1b632c6c /src/mongo/s/config_server_test_fixture.h | |
parent | 42d38ba1fc71a2c0f7cbd19d58da120aa22925bb (diff) | |
download | mongo-435048a90c6f5587cb565a4131f3d11c8ee4130d.tar.gz |
SERVER-24379 Implement ShardingCatalogMangerImpl::addShardToZone
Diffstat (limited to 'src/mongo/s/config_server_test_fixture.h')
-rw-r--r-- | src/mongo/s/config_server_test_fixture.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/s/config_server_test_fixture.h b/src/mongo/s/config_server_test_fixture.h index 9bee4bb5ea7..9ad3c2f0de2 100644 --- a/src/mongo/s/config_server_test_fixture.h +++ b/src/mongo/s/config_server_test_fixture.h @@ -124,6 +124,17 @@ public: void onFindWithMetadataCommand( executor::NetworkTestEnv::OnFindCommandWithMetadataFunction func); + /** + * Setup the config.shards collection to contain the given shards. + */ + Status setupShards(const std::vector<ShardType>& shards); + + /** + * Retrieves the shard document from the config server. + * Returns {ErrorCodes::ShardNotFound} if the given shard does not exists. + */ + StatusWith<ShardType> getShardDoc(OperationContext* txn, const std::string& shardId); + void setUp() override; void tearDown() override; |