diff options
author | Amirsaman Memaripour <amirsaman.memaripour@mongodb.com> | 2020-06-08 18:49:11 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-10 20:27:51 +0000 |
commit | ca520c2222a31734bb1ff9523941c86e55f283b5 (patch) | |
tree | 032680f1eabc34bc60c8141388205d161c2dd390 /src/mongo/db/repl/bgsync.cpp | |
parent | a6aba75c202f3e903af308f7a443ea3cbfd276bd (diff) | |
download | mongo-ca520c2222a31734bb1ff9523941c86e55f283b5.tar.gz |
SERVER-46726 Using testing proctor to control diagnostics in "db/repl"
Diffstat (limited to 'src/mongo/db/repl/bgsync.cpp')
-rw-r--r-- | src/mongo/db/repl/bgsync.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/bgsync.cpp b/src/mongo/db/repl/bgsync.cpp index 52d8ef2e718..a9d11d23ee8 100644 --- a/src/mongo/db/repl/bgsync.cpp +++ b/src/mongo/db/repl/bgsync.cpp @@ -41,7 +41,6 @@ #include "mongo/client/connection_pool.h" #include "mongo/db/auth/authorization_session.h" #include "mongo/db/client.h" -#include "mongo/db/commands/test_commands_enabled.h" #include "mongo/db/concurrency/replication_state_transition_lock_guard.h" #include "mongo/db/concurrency/write_conflict_exception.h" #include "mongo/db/dbhelpers.h" @@ -62,6 +61,7 @@ #include "mongo/rpc/get_status_from_command_result.h" #include "mongo/rpc/metadata/repl_set_metadata.h" #include "mongo/util/str.h" +#include "mongo/util/testing_proctor.h" #include "mongo/util/time_support.h" namespace mongo { @@ -525,7 +525,7 @@ void BackgroundSync::_produce() { fassertFailedWithStatus(34440, exceptionToStatus()); } - const auto logLevel = getTestCommandsEnabled() ? 0 : 1; + const auto logLevel = TestingProctor::instance().isEnabled() ? 0 : 1; LOGV2_DEBUG(21092, logLevel, "scheduling fetcher to read remote oplog on {syncSource} starting at " |