diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-10-12 16:14:19 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-10-15 14:47:14 -0400 |
commit | f9478edc15d451a2c4b2606c02d7fdd5066d711e (patch) | |
tree | 938b54f3484d025a0a6264482c117efbe091e2dc /src/mongo/db/ftdc | |
parent | 20e2bf0b7c57268877b8ab23ad29b3f57af624ff (diff) | |
download | mongo-f9478edc15d451a2c4b2606c02d7fdd5066d711e.tar.gz |
SERVER-20863: Use MB instead of Mb in diagnostic size options
Diffstat (limited to 'src/mongo/db/ftdc')
-rw-r--r-- | src/mongo/db/ftdc/ftdc_mongod.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/db/ftdc/ftdc_mongod.cpp b/src/mongo/db/ftdc/ftdc_mongod.cpp index 8e725f862df..dc7bf12f999 100644 --- a/src/mongo/db/ftdc/ftdc_mongod.cpp +++ b/src/mongo/db/ftdc/ftdc_mongod.cpp @@ -123,23 +123,23 @@ public: ExportedFTDCDirectorySizeParameter() : ExportedServerParameter<std::int32_t, ServerParameterType::kStartupAndRuntime>( ServerParameterSet::getGlobal(), - "diagnosticDataCollectionDirectorySizeMb", + "diagnosticDataCollectionDirectorySizeMB", &localMaxDirectorySizeMB) {} virtual Status validate(const std::int32_t& potentialNewValue) { if (potentialNewValue < 10) { return Status( ErrorCodes::BadValue, - "diagnosticDataCollectionDirectorySizeMb must be greater than or equal to 10"); + "diagnosticDataCollectionDirectorySizeMB must be greater than or equal to 10"); } if (potentialNewValue < localMaxFileSizeMB) { return Status( ErrorCodes::BadValue, str::stream() - << "diagnosticDataCollectionDirectorySizeMb must be greater than or equal to '" + << "diagnosticDataCollectionDirectorySizeMB must be greater than or equal to '" << localMaxFileSizeMB - << "' which is the current value of diagnosticDataCollectionFileSizeMb."); + << "' which is the current value of diagnosticDataCollectionFileSizeMB."); } auto controller = getGlobalFTDCController(); @@ -158,22 +158,22 @@ public: ExportedFTDCFileSizeParameter() : ExportedServerParameter<std::int32_t, ServerParameterType::kStartupAndRuntime>( ServerParameterSet::getGlobal(), - "diagnosticDataCollectionFileSizeMb", + "diagnosticDataCollectionFileSizeMB", &localMaxFileSizeMB) {} virtual Status validate(const std::int32_t& potentialNewValue) { if (potentialNewValue < 1) { return Status(ErrorCodes::BadValue, - "diagnosticDataCollectionFileSizeMb must be greater than or equal to 1"); + "diagnosticDataCollectionFileSizeMB must be greater than or equal to 1"); } if (potentialNewValue > localMaxDirectorySizeMB) { return Status( ErrorCodes::BadValue, str::stream() - << "diagnosticDataCollectionFileSizeMb must be less than or equal to '" + << "diagnosticDataCollectionFileSizeMB must be less than or equal to '" << localMaxDirectorySizeMB - << "' which is the current value of diagnosticDataCollectionDirectorySizeMb."); + << "' which is the current value of diagnosticDataCollectionDirectorySizeMB."); } auto controller = getGlobalFTDCController(); |