summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_info.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/replication_info.cpp')
-rw-r--r--src/mongo/db/repl/replication_info.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/repl/replication_info.cpp b/src/mongo/db/repl/replication_info.cpp
index 6c450ce34ba..b11c2624694 100644
--- a/src/mongo/db/repl/replication_info.cpp
+++ b/src/mongo/db/repl/replication_info.cpp
@@ -231,10 +231,8 @@ public:
appendReplicationInfo(txn, result, 0);
- if (serverGlobalParams.configsvrMode == CatalogManager::ConfigServerMode::CSRS) {
+ if (serverGlobalParams.clusterRole == ClusterRole::ConfigServer) {
result.append("configsvr", 1);
- } else if (serverGlobalParams.configsvrMode == CatalogManager::ConfigServerMode::SCCC) {
- result.append("configsvr", 0);
}
result.appendNumber("maxBsonObjectSize", BSONObjMaxUserSize);