Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
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);
|
|
|