summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_write_cmd.cpp
diff options
context:
space:
mode:
authormathisbessamdb <mathis.bessa@mongodb.com>2023-02-15 22:02:42 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-16 04:09:26 +0000
commit66e7d4bf38be2643450df7d0e0fe48fedde49748 (patch)
treead19604a46c230ef42e9b0e9c1ccb4f703c33ef6 /src/mongo/s/commands/cluster_write_cmd.cpp
parente01c628d96f6e9f81df5b602cb31d75c4816f19e (diff)
downloadmongo-66e7d4bf38be2643450df7d0e0fe48fedde49748.tar.gz
SERVER-73530 TransactionClient API to use DatabaseName objects rather than strings
Diffstat (limited to 'src/mongo/s/commands/cluster_write_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_write_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_write_cmd.cpp b/src/mongo/s/commands/cluster_write_cmd.cpp
index 39defdab465..a39072fbe74 100644
--- a/src/mongo/s/commands/cluster_write_cmd.cpp
+++ b/src/mongo/s/commands/cluster_write_cmd.cpp
@@ -178,7 +178,7 @@ void handleWouldChangeOwningShardErrorNonTransaction(OperationContext* opCtx,
auto swCommitResult = txn.runNoThrow(
opCtx, [sharedBlock](const txn_api::TransactionClient& txnClient, ExecutorPtr txnExec) {
- return txnClient.runCommand(sharedBlock->nss.db(), sharedBlock->cmdObj)
+ return txnClient.runCommand(sharedBlock->nss.dbName(), sharedBlock->cmdObj)
.thenRunOn(txnExec)
.then([sharedBlock](auto res) {
uassertStatusOK(getStatusFromWriteCommandReply(res));
@@ -485,7 +485,7 @@ void ClusterWriteCmd::_commandOpWrite(OperationContext* opCtx,
MultiStatementTransactionRequestsSender ars(
opCtx,
Grid::get(opCtx)->getExecutorPool()->getArbitraryExecutor(),
- nss.db(),
+ nss.dbName(),
requests,
readPref,
Shard::RetryPolicy::kNoRetry);