Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-318

mongoimport should check server before setting write concern

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Write concern 'majority' issued to a pre-2.6 standalone mongod causes the server to return a 'norepl' error. We should check whether or not the connected server is a replica set before setting the write concern. If it is a standalone, we should only set it to 0 or 1.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              adinoyi.omuya Adinoyi Omuya
              Reporter:
              adinoyi.omuya Adinoyi Omuya
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: