[SERVER-70150] Plug DurableCatalog::scanForCatalogEntryByNss into CollectionCatalog::openCollection Created: 30/Sep/22  Updated: 29/Oct/23  Resolved: 11/Nov/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Will Buerger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-68267 Implement function to search for dura... Closed
Related
related to SERVER-70149 Refactor CollectionCatalog::openColle... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-11-14
Participants:

 Description   

Need to plug it on, probably something like this

     if (nss != catalogEntry->metadata->nss) {
          // The requested namespace does not match the namespace found in the in-memory PIT
          catalog
          // entry lookup. Fall back to scanning the catalog at the point in time.
          auto catalogEntry = DurableCatalog::get(opCtx)->scanForCatalogEntryByNss(opCtx, nss);
          if (!catalogEntry) {
              return boost::none;
          }
      }

after this code and then unit test it.



 Comments   
Comment by Githook User [ 10/Nov/22 ]

Author:

{'name': 'Will Buerger', 'email': 'will.buerger@mongodb.com', 'username': 'wbuerger46'}

Message: SERVER-70150: Plug DurableCatalog::scanForCatalogEntryByNss into CollectionCatalog::openCollection
Branch: master
https://github.com/mongodb/mongo/commit/0e8c6b778c53b53fee5bc5bce85125a819d00684

Generated at Thu Feb 08 06:15:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.