Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13277

Typo in reIndex docs

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      Description

      The reIndex commands says it accepts a writeConcern: https://docs.mongodb.com/manual/reference/command/reIndex/

      The text around the writeConcern says "Optional. A document expressing the write concern of the drop command. Omit to use the default write concern."

      It seems this is a typo and was copied from the drop command. The code appears to not allow a writeConcern with reIndex: https://github.com/mongodb/mongo/blob/39c08aceaf7fa15a8e65cf80b09863b452425426/src/mongo/db/commands/drop_indexes.cpp#L105

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              4 years, 20 weeks ago