summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/migration_destination_manager.h
diff options
context:
space:
mode:
authorPaolo Polato <paolo.polato@mongodb.com>2021-06-18 07:49:12 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-21 15:14:59 +0000
commitc855011857e09e31498acf8a45fab630589aaf7c (patch)
treedfd4a902e2d94ad3d48bca203c1fb953c090dc6b /src/mongo/db/s/migration_destination_manager.h
parenta3caa74ad14fbe1bbbb68382548393a3db29fdb1 (diff)
downloadmongo-c855011857e09e31498acf8a45fab630589aaf7c.tar.gz
SERVER-56307 fix the convergence criteria to end the catchup phase
(cherry picked from commit 49209fc34e19bbb15405b0927e38ff3e7d9e9dc5)
Diffstat (limited to 'src/mongo/db/s/migration_destination_manager.h')
-rw-r--r--src/mongo/db/s/migration_destination_manager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/s/migration_destination_manager.h b/src/mongo/db/s/migration_destination_manager.h
index b90a56f52f1..5559b75ace9 100644
--- a/src/mongo/db/s/migration_destination_manager.h
+++ b/src/mongo/db/s/migration_destination_manager.h
@@ -85,7 +85,6 @@ public:
static MigrationDestinationManager* get(OperationContext* opCtx);
State getState() const;
- void setState(State newState);
/**
* Checks whether the MigrationDestinationManager is currently handling a migration.
@@ -181,6 +180,8 @@ private:
void _setStateFail(StringData msg);
void _setStateFailWarn(StringData msg);
+ void _setState(State newState);
+
/**
* Thread which drives the migration apply process on the recipient side.
*/