-
Type: Improvement
-
Resolution: Gone away
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: JavaScript, Shell
-
None
-
Storage Execution
Currently this doesn't generate an error, or work as intended, since gle on the server ignores it, but we should be able to tell what the user intended and use it correctly.
var bulk = ... ... bulk.execute({w:1}) // correct format bulk.execute({writeConcern:{w:1}}) // should work by unwrapping "writeConcern"
This will also allow execute to have more named arguments in the future...
- is related to
-
SERVER-13113 shell API does not validate write concern for empty batches
- Backlog
-
SERVER-13156 wc validation in shell bulk API is not enforced for 2.2/2.4 servers.
- Closed
-
SERVER-15117 Bulk write with invalid writeConcern blindly accepted
- Closed