Plug DurableCatalog::scanForCatalogEntryByNss into CollectionCatalog::openCollection

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2022-11-14
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Will Buerger
              Reporter:
              Dianna Hohensee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: