diff options
Diffstat (limited to 'src/mongo/db/repl/rs_rollback.cpp')
-rw-r--r-- | src/mongo/db/repl/rs_rollback.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/mongo/db/repl/rs_rollback.cpp b/src/mongo/db/repl/rs_rollback.cpp index 6de2fbdf650..44c40e4f40e 100644 --- a/src/mongo/db/repl/rs_rollback.cpp +++ b/src/mongo/db/repl/rs_rollback.cpp @@ -593,17 +593,6 @@ Status rollback_internal::updateFixUpInfoFromLocalOplogEntry(OperationContext* o case OplogEntry::CommandType::kAbortTransaction: { return Status::OK(); } - // TODO(SERVER-40728): Remove commitTransaction handling for unprepared transactions. - case OplogEntry::CommandType::kCommitTransaction: { - IDLParserErrorContext ctx("commitTransaction"); - auto commitCommand = CommitTransactionOplogObject::parse(ctx, obj); - const bool prepared = !commitCommand.getPrepared() || *commitCommand.getPrepared(); - if (!prepared) { - log() << "Ignoring unprepared commitTransaction during rollback: " - << redact(oplogEntry.toBSON()); - return Status::OK(); - } - } default: { std::string message = str::stream() << "Can't roll back this command yet: " << " cmdname = " << first.fieldName(); |