Details
Description
The shell's WriteConcern constructor has an error message that indicates that wtimeout values must be greater than 0. The code allows wtimeout:0 values, though:
src/mongo/shell/bulk_api.js:
71 if (NumberInt( opts.wtimeout ).toNumber() < 0)
|
72 throw Error("wtimeout must be a number greater than 0, not " + opts.wtimeout);
|
Output:
> new WriteConcern(0, -1)
|
2014-03-27T18:16:33.546-0400 Error: wtimeout must be a number greater than 0, not -1 at src/mongo/shell/bulk_api.js:72
|
> new WriteConcern(0, 0)
|
WriteConcern({ "w" : 0, "wtimeout" : 0 })
|
Version: 98e464bc2a21ad4b706854ad640957060fa0fa6f