Replace shared_ptr<IndexBuildInterceptor> in IndexBuildBlock with unique_ptr via idiomatic lifetime solution

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-127607 introduced a shared_ptr<IndexBuildInterceptor> in IndexBuildBlock to satisfy weak_ptr's requirement for a shared control block, allowing IndexCatalogEntryImpl to safely observe the interceptor without a dangling pointer. However, IndexBuildBlock is the sole logical owner and shared_ptr is semantically incorrect here. This ticket tracks replacing the shared_ptr with a unique_ptr by implementing a proper idiomatic solution to the interceptor lifetime problem — one that does not require shared ownership machinery. SERVER-127607 is a prerequisite.

            Assignee:
            Unassigned
            Reporter:
            Malik Endsley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: