diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2023-02-15 14:12:23 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-15 15:41:49 +0000 |
commit | c3a54fa12ceb2e4e7b5fad5bd117bbab9b9c486f (patch) | |
tree | 26e1b286c300deb75b72e1747900c39347415aca /src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp | |
parent | 8f36c90d997708507e1d73c4200d79a92619f422 (diff) | |
download | mongo-c3a54fa12ceb2e4e7b5fad5bd117bbab9b9c486f.tar.gz |
SERVER-73818 Remove CollectionPtr from CollectionCatalog interface
Interfaces instead return 'const Collection*' and if a CollectionPtr is needed it must be created by the user.
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp')
-rw-r--r-- | src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp | 2 |
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 a2cf65fadc4..8b3621a409f 100644 --- a/src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp +++ b/src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp @@ -236,7 +236,7 @@ void ReshardingOplogFetcher::_ensureCollection(Client* client, // Create the destination collection if necessary. writeConflictRetry(opCtx, "createReshardingLocalOplogBuffer", nss.toString(), [&] { - const CollectionPtr coll = + const Collection* coll = CollectionCatalog::get(opCtx)->lookupCollectionByNamespace(opCtx, nss); if (coll) { return; |