Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-36307

Remove MultiIndexBlockImpl::insertAllDocumentsInCollection function parameter that is always a nullptr

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.2
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • Storage NYC 2018-08-13

      No callers of MultiIndexBlockImpl::insertAllDocumentsInCollection(std::set<RecordId>* dupsOut = nullptr), except for an index unit test, pass in a function parameter. They all let the function parameter default to nullptr.

      I suspect that this field was outdated with the introduction of the 'unique' index build setting. A build will handle the issue of duplicates internally, succeeding or failing depending on settings that were passed into the index build request.

            Assignee:
            audrey.fang Audrey Fang (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: