[DOCS-4282] default ordered for db.collection.insert Created: 03/Nov/14  Updated: 03/Nov/14  Resolved: 03/Nov/14

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: v1.3.13

Type: Bug Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 9 years, 15 weeks, 2 days ago

 Description   

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);
 



 Comments   
Comment by Githook User [ 03/Nov/14 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-4282 insert method default ordered option
Branch: master
https://github.com/mongodb/docs/commit/dd89689a2668f952034076fcfcc7624e766fa21c

Generated at Thu Feb 08 07:47:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.