diff options
author | Matthew Saltz <matthew.saltz@mongodb.com> | 2018-05-17 16:54:21 -0400 |
---|---|---|
committer | Matthew Saltz <matthew.saltz@mongodb.com> | 2018-05-18 11:18:59 -0400 |
commit | 35e9928bf33c6270e3195a00c24fe7a09edf512e (patch) | |
tree | 95079edc09345afcc1d4373ef0599d8709bd7dfa /src/mongo/db/s/move_primary_source_manager.h | |
parent | 9ca43580864a05c6eb543b5bee8402d82bd99bc7 (diff) | |
download | mongo-35e9928bf33c6270e3195a00c24fe7a09edf512e.tar.gz |
SERVER-34807 Rename states in movePrimary state machine to match migration
Diffstat (limited to 'src/mongo/db/s/move_primary_source_manager.h')
-rw-r--r-- | src/mongo/db/s/move_primary_source_manager.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/s/move_primary_source_manager.h b/src/mongo/db/s/move_primary_source_manager.h index 0b1a4127f1c..aa13bf5a0fd 100644 --- a/src/mongo/db/s/move_primary_source_manager.h +++ b/src/mongo/db/s/move_primary_source_manager.h @@ -99,7 +99,7 @@ public: * movePrimary is committed. Therefore, commitMovePrimaryMetadata must be called as soon as * possible afterwards. * - * Expected state: kCloneCompleted + * Expected state: kCloneCaughtUp * Resulting state: kCriticalSection on success, kDone on failure */ Status enterCriticalSection(OperationContext* opCtx); @@ -146,9 +146,9 @@ private: enum State { kCreated, kCloning, - kCloneCompleted, + kCloneCaughtUp, kCriticalSection, - kCommitted, + kCloneCompleted, kNeedCleanStaleData, kDone }; |