diff options
-rw-r--r-- | src/mongo/s/catalog/legacy/catalog_manager_legacy.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/s/catalog/legacy/catalog_manager_legacy.cpp b/src/mongo/s/catalog/legacy/catalog_manager_legacy.cpp index 6a33cd60af3..59490cb0e9e 100644 --- a/src/mongo/s/catalog/legacy/catalog_manager_legacy.cpp +++ b/src/mongo/s/catalog/legacy/catalog_manager_legacy.cpp @@ -336,7 +336,12 @@ namespace { if (_configServerConnectionString.type() == ConnectionString::MASTER) { _configServers.push_back(_configServerConnectionString); } - else if (_configServerConnectionString.type() == ConnectionString::SYNC) { + else if (_configServerConnectionString.type() == ConnectionString::SYNC || + (_configServerConnectionString.type() == ConnectionString::SET && + _configServerConnectionString.getServers().size() == 1)) { + // TODO(spencer): Remove second part of the above or statement that allows replset + // config server strings once we've separated the legacy catalog manager from the + // CSRS version. const vector<HostAndPort> configHPs = _configServerConnectionString.getServers(); for (vector<HostAndPort>::const_iterator it = configHPs.begin(); it != configHPs.end(); |