summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-05-15 13:11:17 -0400
committerBilly Donahue <billy.donahue@mongodb.com>2018-05-15 13:11:29 -0400
commit088097b7abadc753da184124c6240ede86d08178 (patch)
tree4661eef9c3337dba18cdd37b9f14c26f010d8f36 /src
parentdf4b551101995817b71a47ec85d58190d069540a (diff)
downloadmongo-088097b7abadc753da184124c6240ede86d08178.tar.gz
SERVER-34345 remove new EXPORT_SERVER_PARAMETER....WITH_VALIDATOR
fixes df4b551101995817b71a47ec85d58190d069540a
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/repl/bgsync.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/db/repl/bgsync.cpp b/src/mongo/db/repl/bgsync.cpp
index 9530d8e27c7..3fe778d9909 100644
--- a/src/mongo/db/repl/bgsync.cpp
+++ b/src/mongo/db/repl/bgsync.cpp
@@ -81,11 +81,8 @@ MONGO_EXPORT_STARTUP_SERVER_PARAMETER(bgSyncOplogFetcherBatchSize, int, defaultB
// The batchSize to use for the find/getMore queries called by the rollback common point resolver.
// A batchSize of 0 means that the 'find' and 'getMore' commands will be given no batchSize.
constexpr int defaultRollbackBatchSize = 0;
-MONGO_EXPORT_SERVER_PARAMETER_WITH_VALIDATOR(
- rollbackRemoteOplogQueryBatchSize,
- int,
- defaultRollbackBatchSize,
- [](const auto& potentialNewValue) {
+MONGO_EXPORT_SERVER_PARAMETER(rollbackRemoteOplogQueryBatchSize, int, defaultRollbackBatchSize)
+ ->withValidator([](const auto& potentialNewValue) {
if (potentialNewValue < 0) {
return Status(ErrorCodes::BadValue,
"rollbackRemoteOplogQueryBatchSize cannot be negative.");