summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp
diff options
context:
space:
mode:
authorSophia Tan <sophia_tll@hotmail.com>2023-05-12 19:44:44 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-15 23:20:28 +0000
commit6be86d8987dbad1c33160ef1779b598bc7cfa6b4 (patch)
treeb3484e6c70e402ddf66482df828c3b3f221457b3 /src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp
parentba0986ac66e3a22d211ad3707ad037fdc10910af (diff)
downloadmongo-6be86d8987dbad1c33160ef1779b598bc7cfa6b4.tar.gz
SERVER-75276 writeConflictRetry should properly be using a NamespaceStringOrUUID instead of a StringData
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp')
-rw-r--r--src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp b/src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp
index b1e91410aab..e2a4bf22db8 100644
--- a/src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp
+++ b/src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp
@@ -242,7 +242,7 @@ void ReshardingOplogFetcher::_ensureCollection(Client* client,
invariant(!opCtx->lockState()->inAWriteUnitOfWork());
// Create the destination collection if necessary.
- writeConflictRetry(opCtx, "createReshardingLocalOplogBuffer", nss.toString(), [&] {
+ writeConflictRetry(opCtx, "createReshardingLocalOplogBuffer", nss, [&] {
const Collection* coll =
CollectionCatalog::get(opCtx)->lookupCollectionByNamespace(opCtx, nss);
if (coll) {