diff options
author | Pawel Terlecki <pawel.terlecki@mongodb.com> | 2019-02-01 18:43:03 -0500 |
---|---|---|
committer | Pawel Terlecki <pawel.terlecki@mongodb.com> | 2019-02-04 12:12:18 -0500 |
commit | bd6d9a07a669891f18d0fb6a0f9b1535a6f13524 (patch) | |
tree | 0aa2e637f688584edf5d38536135c9ceddcf81b7 /src/mongo/db/repl/rs_rollback.cpp | |
parent | 2d242bb2fd988496cbbe01ad17304778b441319a (diff) | |
download | mongo-SERVER-38316.tar.gz |
SERVER-38316 Consolidate PlanExecutor::DEAD and PlanExecutor::FAILURESERVER-38316
Takes care of PlanExecutor states. In some cases we log more
information for former DEAD state scenarios now.
Diffstat (limited to 'src/mongo/db/repl/rs_rollback.cpp')
-rw-r--r-- | src/mongo/db/repl/rs_rollback.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/db/repl/rs_rollback.cpp b/src/mongo/db/repl/rs_rollback.cpp index 12a2268a824..61f3c91b5df 100644 --- a/src/mongo/db/repl/rs_rollback.cpp +++ b/src/mongo/db/repl/rs_rollback.cpp @@ -763,11 +763,10 @@ void dropCollection(OperationContext* opCtx, } // If we exited the above for loop with any other execState than IS_EOF, this means that - // a FAILURE or DEAD state was returned. If a DEAD state occurred, the collection or - // database that we are attempting to save may no longer be valid. If a FAILURE state - // was returned, either an unrecoverable error was thrown by exec, or we attempted to - // retrieve data that could not be provided by the PlanExecutor. In both of these cases - // it is necessary for a full resync of the server. + // a FAILURE state was returned. If a FAILURE state was returned, either an unrecoverable + // error was thrown by exec, or we attempted to retrieve data that could not be provided + // by the PlanExecutor. In both of these cases it is necessary for a full resync of the + // server. if (execState != PlanExecutor::IS_EOF) { if (execState == PlanExecutor::FAILURE && |