diff options
author | Benety Goh <benety@mongodb.com> | 2019-05-21 11:15:27 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2019-05-21 11:15:48 -0400 |
commit | a3638ccc4889436984eb385cb7717eecd6af83cf (patch) | |
tree | c51a8b794106aaf20750e68aadd56a51126986aa /src/mongo/db/op_observer_impl.cpp | |
parent | d9d57c2edef4cf974ccf6a527d9cce28baa03079 (diff) | |
download | mongo-a3638ccc4889436984eb385cb7717eecd6af83cf.tar.gz |
SERVER-41191 OpObserverImpl stops setting prepared field on commitTransaction oplog entry
Diffstat (limited to 'src/mongo/db/op_observer_impl.cpp')
-rw-r--r-- | src/mongo/db/op_observer_impl.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/db/op_observer_impl.cpp b/src/mongo/db/op_observer_impl.cpp index 12109111f1b..c6ed67136dd 100644 --- a/src/mongo/db/op_observer_impl.cpp +++ b/src/mongo/db/op_observer_impl.cpp @@ -1418,11 +1418,6 @@ void OpObserverImpl::onPreparedTransactionCommit( CommitTransactionOplogObject cmdObj; cmdObj.setCommitTimestamp(commitTimestamp); - if (gUseMultipleOplogEntryFormatForTransactions && - serverGlobalParams.featureCompatibility.getVersion() == - ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo42) { - cmdObj.setPrepared(true); - } logCommitOrAbortForTransaction( opCtx, commitOplogEntryOpTime, cmdObj.toBSON(), DurableTxnStateEnum::kCommitted); } |