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

shell bulk api passes wrong flags when performing legacy inserts

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Shell
    • Server Tooling & Methods

    Description

      https://github.com/mongodb/mongo/blob/r3.3.2/src/mongo/shell/bulk_api.js#L883

      It passes ordered as a bool, but the argument is an int32 flags field with 1 defined bit for continueOnError. This means it is always setting the bit to the opposite of what it should be. It probably doesn't have any effect today since the bulk api never does legacy inserts with more than one object to insert, but it could if we ever did.

      Attachments

        Activity

          People

            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: