summaryrefslogtreecommitdiff
path: root/src/mongo/db/ftdc/ftdc_mongod.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-10-02 17:34:51 -0400
committerAndrew Morrow <acm@mongodb.com>2015-10-02 17:53:39 -0400
commit1fd64cee88562e77883db5b75ee666a55b15e748 (patch)
tree6d764db37db3364f9085860a4f9690c2e8acd411 /src/mongo/db/ftdc/ftdc_mongod.cpp
parent375f918358956a11b977b3fb7dc60079ce8f0218 (diff)
downloadmongo-1fd64cee88562e77883db5b75ee666a55b15e748.tar.gz
SERVER-20750 Require at least one delta sample in each chunk
Diffstat (limited to 'src/mongo/db/ftdc/ftdc_mongod.cpp')
-rw-r--r--src/mongo/db/ftdc/ftdc_mongod.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/ftdc/ftdc_mongod.cpp b/src/mongo/db/ftdc/ftdc_mongod.cpp
index addcd14d524..8ea5c2d01d1 100644
--- a/src/mongo/db/ftdc/ftdc_mongod.cpp
+++ b/src/mongo/db/ftdc/ftdc_mongod.cpp
@@ -199,10 +199,10 @@ public:
&localMaxSamplesPerArchiveMetricChunk) {}
virtual Status validate(const std::int32_t& potentialNewValue) {
- if (potentialNewValue < 1) {
+ if (potentialNewValue < 2) {
return Status(
ErrorCodes::BadValue,
- "diagnosticDataCollectionSamplesPerChunk must be greater than or equal to 1");
+ "diagnosticDataCollectionSamplesPerChunk must be greater than or equal to 2");
}
auto controller = getGlobalFTDCController();
@@ -228,10 +228,10 @@ public:
&localMaxSamplesPerInterimMetricChunk) {}
virtual Status validate(const std::int32_t& potentialNewValue) {
- if (potentialNewValue < 1) {
+ if (potentialNewValue < 2) {
return Status(ErrorCodes::BadValue,
"diagnosticDataCollectionSamplesPerInterimUpdate must be greater than or "
- "equal to 1");
+ "equal to 2");
}
auto controller = getGlobalFTDCController();