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

default ordered for db.collection.insert

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • v1.3.13
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      From shell:

          var flags = 0;
      
         
          if ( options === undefined ) {
              // do nothing
          }
          else if ( typeof(options) == 'object' ) {
              if (options.ordered === undefined) {
                  //do nothing, like above
              } else {
                  flags = options.ordered ? 0 : 1;
              }
      
              if (options.writeConcern)
                  wc = options.writeConcern;
              if (options.allowdotted)
                  allowDottedFields = true;
          } else {
              flags = options;
          }
      
          // 1 = continueOnError, which is synonymous with unordered in the write commands/bulk-api
          var ordered = ((flags & 1) == 0);
      
      

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

              Created:
              Updated:
              Resolved:
              9 years, 28 weeks, 4 days ago