summaryrefslogtreecommitdiff
path: root/src/mongo/db/ftdc/ftdc_mongod.cpp
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2020-01-21 20:50:37 +0000
committerevergreen <evergreen@mongodb.com>2020-01-21 20:50:37 +0000
commit9c638e3cb001a4dc9fcf869d2602c504439c2aef (patch)
tree5e9ad8f321c148607968b980daca2233af5b0e53 /src/mongo/db/ftdc/ftdc_mongod.cpp
parent685afc7262c35f71cc04ceb0819a3a90f06c95bb (diff)
downloadmongo-9c638e3cb001a4dc9fcf869d2602c504439c2aef.tar.gz
SERVER-43832 Expose readConcern and writeConcern defaults in serverStatus
Diffstat (limited to 'src/mongo/db/ftdc/ftdc_mongod.cpp')
-rw-r--r--src/mongo/db/ftdc/ftdc_mongod.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/ftdc/ftdc_mongod.cpp b/src/mongo/db/ftdc/ftdc_mongod.cpp
index 73e598ec410..e53b423f0bb 100644
--- a/src/mongo/db/ftdc/ftdc_mongod.cpp
+++ b/src/mongo/db/ftdc/ftdc_mongod.cpp
@@ -57,6 +57,14 @@ void registerMongoDCollectors(FTDCController* controller) {
"local",
BSON("collStats"
<< "oplog.rs")));
+ if (serverGlobalParams.clusterRole != ClusterRole::ShardServer) {
+ // GetDefaultRWConcern
+ controller->addOnRotateCollector(std::make_unique<FTDCSimpleInternalCommandCollector>(
+ "getDefaultRWConcern",
+ "getDefaultRWConcern",
+ "",
+ BSON("getDefaultRWConcern" << 1 << "inMemory" << true)));
+ }
}
}