diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2018-04-26 14:57:17 -0400 |
---|---|---|
committer | Sara Golemon <sara.golemon@mongodb.com> | 2018-05-01 12:53:05 -0400 |
commit | 1c5629c05fa9b08752688c021f7a6beef3a20dca (patch) | |
tree | dbaacdd92639b5be5b7a6f6884e1496c7af0b803 /src/mongo/db/free_mon/free_mon_controller.cpp | |
parent | e5f4331b710b0c933699e26e8c65f702231038cc (diff) | |
download | mongo-1c5629c05fa9b08752688c021f7a6beef3a20dca.tar.gz |
SERVER-34229 Add free monitoring to serverStatus
Diffstat (limited to 'src/mongo/db/free_mon/free_mon_controller.cpp')
-rw-r--r-- | src/mongo/db/free_mon/free_mon_controller.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/free_mon/free_mon_controller.cpp b/src/mongo/db/free_mon/free_mon_controller.cpp index 3c50d193d07..f5e35217166 100644 --- a/src/mongo/db/free_mon/free_mon_controller.cpp +++ b/src/mongo/db/free_mon/free_mon_controller.cpp @@ -162,4 +162,11 @@ void FreeMonController::turnCrankForTest(size_t countMessagesToIgnore) { _processor->turnCrankForTest(countMessagesToIgnore); } +void FreeMonController::getServerStatus(OperationContext* opCtx, BSONObjBuilder* status) { + if (!_processor) { + status->append("state", "disabled"); + } + _processor->getServerStatus(opCtx, status); +} + } // namespace mongo |