summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_entry_point_common.cpp
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2022-02-28 19:31:31 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-28 20:16:11 +0000
commitb17dfaaec98f63c16d05c9f76768df98be78699e (patch)
treee1ef6535504b8b6658f58a72a1f51292879023ab /src/mongo/db/service_entry_point_common.cpp
parentcd3d711e8c208c3766717ded817fcc4130db2d42 (diff)
downloadmongo-b17dfaaec98f63c16d05c9f76768df98be78699e.tar.gz
SERVER-59186 Use transaction API for all current changing a document's shard key logic
Diffstat (limited to 'src/mongo/db/service_entry_point_common.cpp')
-rw-r--r--src/mongo/db/service_entry_point_common.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp
index fa1ad9feece..0c7b8d10f26 100644
--- a/src/mongo/db/service_entry_point_common.cpp
+++ b/src/mongo/db/service_entry_point_common.cpp
@@ -991,6 +991,9 @@ void CheckoutSessionAndInvokeCommand::_tapError(Status status) {
} else if (status.code() == ErrorCodes::WouldChangeOwningShard) {
_txnParticipant->handleWouldChangeOwningShardError(opCtx);
_stashTransaction();
+
+ auto txnResponseMetadata = _txnParticipant->getResponseMetadata();
+ txnResponseMetadata.serialize(_ecd->getExtraFieldsBuilder());
}
}