diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2018-05-04 11:52:19 -0400 |
---|---|---|
committer | Sara Golemon <sara.golemon@mongodb.com> | 2018-05-07 11:00:18 -0400 |
commit | f517624cc26820ed3f2a5439be4a94e47ff4877d (patch) | |
tree | 10188a4d0a8868952fd0db452e31709a034d0d2b /src/mongo/db/free_mon/free_mon_processor.h | |
parent | 5b4049d12e84fe072cb0828fdce700b4d503ca89 (diff) | |
download | mongo-f517624cc26820ed3f2a5439be4a94e47ff4877d.tar.gz |
SERVER-34845 Limit disk reads during getFreeMonitoringStatus
Diffstat (limited to 'src/mongo/db/free_mon/free_mon_processor.h')
-rw-r--r-- | src/mongo/db/free_mon/free_mon_processor.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/db/free_mon/free_mon_processor.h b/src/mongo/db/free_mon/free_mon_processor.h index 846c7db1d55..3df69b46e2f 100644 --- a/src/mongo/db/free_mon/free_mon_processor.h +++ b/src/mongo/db/free_mon/free_mon_processor.h @@ -420,10 +420,15 @@ private: protected: friend class FreeMonController; + enum FreeMonGetStatusEnum { + kServerStatus, + kCommandStatus, + }; + /** - * Server status section with state for active processor. + * Populate results for getFreeMonitoringStatus or serverStatus commands. */ - void getServerStatus(OperationContext* opCtx, BSONObjBuilder* status); + void getStatus(OperationContext* opCtx, BSONObjBuilder* status, FreeMonGetStatusEnum mode); private: // Collection of collectors to send on registration |