From fd954412dfc10e4d1e3e2dd4fac040f8b476b268 Mon Sep 17 00:00:00 2001 From: Mark Benvenuto Date: Mon, 12 Mar 2018 17:06:10 -0400 Subject: SERVER-28495 Fix lint --- src/mongo/db/ftdc/ftdc_server.cpp | 10 ++++++---- src/mongo/s/commands/cluster_ftdc_commands.cpp | 3 +-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/mongo/db/ftdc/ftdc_server.cpp b/src/mongo/db/ftdc/ftdc_server.cpp index 06bc937be42..167587a8722 100644 --- a/src/mongo/db/ftdc/ftdc_server.cpp +++ b/src/mongo/db/ftdc/ftdc_server.cpp @@ -60,7 +60,7 @@ FTDCController* getGlobalFTDCController() { return getFTDCController(getGlobalServiceContext()).get(); } -std::atomic localEnabledFlag(FTDCConfig::kEnabledDefault); // NOLINT +std::atomic localEnabledFlag(FTDCConfig::kEnabledDefault); // NOLINT class ExportedFTDCEnabledParameter : public ExportedServerParameter { @@ -82,7 +82,7 @@ public: } exportedFTDCEnabledParameter; -std::atomic localPeriodMillis(FTDCConfig::kPeriodMillisDefault); // NOLINT +std::atomic localPeriodMillis(FTDCConfig::kPeriodMillisDefault); // NOLINT class ExportedFTDCPeriodParameter : public ExportedServerParameter { @@ -111,9 +111,11 @@ public: } exportedFTDCPeriodParameter; // Scale the values down since are defaults are in bytes, but the user interface is MB -std::atomic localMaxDirectorySizeMB(FTDCConfig::kMaxDirectorySizeBytesDefault / (1024 * 1024)); // NOLINT +std::atomic localMaxDirectorySizeMB(FTDCConfig::kMaxDirectorySizeBytesDefault / + (1024 * 1024)); // NOLINT -std::atomic localMaxFileSizeMB(FTDCConfig::kMaxFileSizeBytesDefault / (1024 * 1024)); // NOLINT +std::atomic localMaxFileSizeMB(FTDCConfig::kMaxFileSizeBytesDefault / + (1024 * 1024)); // NOLINT class ExportedFTDCDirectorySizeParameter : public ExportedServerParameter { diff --git a/src/mongo/s/commands/cluster_ftdc_commands.cpp b/src/mongo/s/commands/cluster_ftdc_commands.cpp index b0055f7d6be..12021e98f6d 100644 --- a/src/mongo/s/commands/cluster_ftdc_commands.cpp +++ b/src/mongo/s/commands/cluster_ftdc_commands.cpp @@ -100,8 +100,7 @@ public: BSONObjBuilder& result) override { result.append( - "data", - FTDCController::get(txn->getServiceContext())->getMostRecentPeriodicDocument()); + "data", FTDCController::get(txn->getServiceContext())->getMostRecentPeriodicDocument()); return true; } -- cgit v1.2.1