diff options
author | William Schultz <william.schultz@mongodb.com> | 2018-02-22 15:33:59 -0500 |
---|---|---|
committer | William Schultz <william.schultz@mongodb.com> | 2018-02-22 15:33:59 -0500 |
commit | ddef91443698a4ab8550437abecb6c737a6d7e67 (patch) | |
tree | 97741faa6477c8188d1f1b06fdb53307a370c75c /src/mongo/db/repl/rollback_impl.h | |
parent | 9c65faa1ea24b92d86f846abd38909b4ef2fe5bc (diff) | |
download | mongo-ddef91443698a4ab8550437abecb6c737a6d7e67.tar.gz |
SERVER-33166 Always transition back to SECONDARY after rollback
Diffstat (limited to 'src/mongo/db/repl/rollback_impl.h')
-rw-r--r-- | src/mongo/db/repl/rollback_impl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/repl/rollback_impl.h b/src/mongo/db/repl/rollback_impl.h index ab7289057cf..910028c0795 100644 --- a/src/mongo/db/repl/rollback_impl.h +++ b/src/mongo/db/repl/rollback_impl.h @@ -154,6 +154,10 @@ public: /** * Runs the rollback algorithm. + * + * This method transitions to the ROLLBACK state and then performs the steps of the rollback + * process. It is required for this method to transition back to SECONDARY before returning, + * even if rollback did not complete successfully. */ Status runRollback(OperationContext* opCtx); |