diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2022-02-28 19:31:31 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-28 20:16:11 +0000 |
commit | b17dfaaec98f63c16d05c9f76768df98be78699e (patch) | |
tree | e1ef6535504b8b6658f58a72a1f51292879023ab /src/mongo/db/s/resharding | |
parent | cd3d711e8c208c3766717ded817fcc4130db2d42 (diff) | |
download | mongo-b17dfaaec98f63c16d05c9f76768df98be78699e.tar.gz |
SERVER-59186 Use transaction API for all current changing a document's shard key logic
Diffstat (limited to 'src/mongo/db/s/resharding')
-rw-r--r-- | src/mongo/db/s/resharding/resharding_data_copy_util.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/s/resharding/resharding_data_copy_util.cpp b/src/mongo/db/s/resharding/resharding_data_copy_util.cpp index d51bfca313c..e000d42f5ae 100644 --- a/src/mongo/db/s/resharding/resharding_data_copy_util.cpp +++ b/src/mongo/db/s/resharding/resharding_data_copy_util.cpp @@ -342,6 +342,11 @@ void updateSessionRecord(OperationContext* opCtx, std::move(opTime), oplogEntry.getWallClockTime()); + if (isInternalSessionForRetryableWrite(*oplogEntry.getSessionId())) { + sessionTxnRecord.setParentSessionId( + *getParentSessionId(*oplogEntry.getSessionId())); + } + txnParticipant.onRetryableWriteCloningCompleted( opCtx, stmtIds, sessionTxnRecord); |