summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2019-02-21 12:38:38 -0500
committerJonathan Reams <jbreams@mongodb.com>2019-02-26 10:09:20 -0500
commit185c3482ceb8676f59a82e0b7471c31fee9d4a1d (patch)
treeeeeefc59c17fe6b3dcb4447311a8179be2f14f87 /src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
parent72425ec865efeeea9c1cb61c4cde9393fd4dc9d5 (diff)
downloadmongo-185c3482ceb8676f59a82e0b7471c31fee9d4a1d.tar.gz
SERVER-39538 Convert replication setParameters to IDL
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_external_state_impl.cpp')
-rw-r--r--src/mongo/db/repl/replication_coordinator_external_state_impl.cpp25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
index 2ce1ae9e438..dba73cf46cd 100644
--- a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
@@ -66,6 +66,7 @@
#include "mongo/db/repl/oplog.h"
#include "mongo/db/repl/oplog_applier_impl.h"
#include "mongo/db/repl/oplog_buffer_blocking_queue.h"
+#include "mongo/db/repl/repl_server_parameters_gen.h"
#include "mongo/db/repl/repl_settings.h"
#include "mongo/db/repl/replication_coordinator.h"
#include "mongo/db/repl/replication_process.h"
@@ -78,7 +79,6 @@
#include "mongo/db/s/sharding_state_recovery.h"
#include "mongo/db/s/transaction_coordinator_service.h"
#include "mongo/db/server_options.h"
-#include "mongo/db/server_parameters.h"
#include "mongo/db/service_context.h"
#include "mongo/db/session_catalog_mongod.h"
#include "mongo/db/storage/storage_engine.h"
@@ -125,29 +125,6 @@ const char tsFieldName[] = "ts";
MONGO_FAIL_POINT_DEFINE(dropPendingCollectionReaperHang);
-// Set this to specify the maximum number of times the oplog fetcher will consecutively restart the
-// oplog tailing query on non-cancellation errors during steady state replication.
-MONGO_EXPORT_SERVER_PARAMETER(oplogFetcherSteadyStateMaxFetcherRestarts, int, 1)
- ->withValidator([](const int& potentialNewValue) {
- if (potentialNewValue < 0) {
- return Status(ErrorCodes::BadValue,
- "oplogFetcherSteadyStateMaxFetcherRestarts must be nonnegative");
- }
- return Status::OK();
- });
-
-// Set this to specify the maximum number of times the oplog fetcher will consecutively restart the
-// oplog tailing query on non-cancellation errors during initial sync. By default we provide a
-// generous amount of restarts to avoid potentially restarting an entire initial sync from scratch.
-MONGO_EXPORT_SERVER_PARAMETER(oplogFetcherInitialSyncMaxFetcherRestarts, int, 10)
- ->withValidator([](const int& potentialNewValue) {
- if (potentialNewValue < 0) {
- return Status(ErrorCodes::BadValue,
- "oplogFetcherInitialSyncMaxFetcherRestarts must be nonnegative");
- }
- return Status::OK();
- });
-
// The count of items in the buffer
OplogBuffer::Counters bufferGauge;
ServerStatusMetricField<Counter64> displayBufferCount("repl.buffer.count", &bufferGauge.count);