diff options
author | Jason Zhang <jason.zhang@mongodb.com> | 2022-08-05 23:49:51 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-06 00:19:50 +0000 |
commit | 2bd58dc5ae6f9c5af504a9210f45eb46683ee8f8 (patch) | |
tree | c400ea4ee92fd10a374a292c9e0b880d7859a484 | |
parent | ea1fa3b5382a6fef56f9b43078465bf3ff570669 (diff) | |
download | mongo-2bd58dc5ae6f9c5af504a9210f45eb46683ee8f8.tar.gz |
SERVER-68018 Remove invariant in SEPTransactionClient::runCommand requiring executor thread to not have client
-rw-r--r-- | src/mongo/db/transaction/transaction_api.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mongo/db/transaction/transaction_api.cpp b/src/mongo/db/transaction/transaction_api.cpp index 0d3bef20132..09f6090a6e8 100644 --- a/src/mongo/db/transaction/transaction_api.cpp +++ b/src/mongo/db/transaction/transaction_api.cpp @@ -301,7 +301,6 @@ SemiFuture<BSONObj> SEPTransactionClient::runCommand(StringData dbName, BSONObj BSONObjBuilder cmdBuilder(_behaviors->maybeModifyCommand(std::move(cmdObj))); _hooks->runRequestHook(&cmdBuilder); - invariant(!haveClient()); auto client = _serviceContext->makeClient("SEP-internal-txn-client"); AlternativeClientRegion clientRegion(client); // Note that _token is only cancelled once the caller of the transaction no longer cares about |