[SERVER-12214] Make WriteResult in the shell adhere to write command spec Created: 29/Dec/13  Updated: 11/Jul/16  Resolved: 08/Jan/14

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 2.5.5

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

Issue Links:
Depends
is depended on by SERVER-12215 createIndex and ensureIndex do not re... Closed
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

The write cmd spec changed to return

{ok: 1}

for all cases except for auth failure and failure to parse command. The WriteResult class in the shell to match the spec (/src/mongo/shell/writes.js).



 Comments   
Comment by Githook User [ 10/Jan/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-12214 Make WriteResult in the shell adhere to write command spec

Restore _validateForStorage definition after test in order not to break succeeding tests in sharding passthrough.
Branch: master
https://github.com/mongodb/mongo/commit/c2133cd477f36ff902956374604d0823f5e20416

Comment by Randolph Tan [ 10/Jan/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-11214 Make WriteResult in the shell adhere to write command spec
Fix test to reflect changes in DBCollection.
Branch: master
https://github.com/mongodb/mongo/commit/5af9a7433876664ac75bc0345f5903e04b5e1e7f

Comment by Githook User [ 10/Jan/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-12214 Make WriteResult in the shell adhere to write command spec

Put back original fix by reverting fa01bee42fa6b495474eded723ec0c4a538d802f
Branch: master
https://github.com/mongodb/mongo/commit/c55cc6aea43f2a71d90a44e955464656c84846e4

Comment by Githook User [ 09/Jan/14 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: Revert "SERVER-12214 Make WriteResult in the shell adhere to write command spec"

This reverts commit 26fd0b03e7b41940a1b7a6de7d23ea3d00d9dc47.
Branch: master
https://github.com/mongodb/mongo/commit/fa01bee42fa6b495474eded723ec0c4a538d802f

Comment by Githook User [ 08/Jan/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-12214 Make WriteResult in the shell adhere to write command spec
Branch: master
https://github.com/mongodb/mongo/commit/26fd0b03e7b41940a1b7a6de7d23ea3d00d9dc47

Generated at Thu Feb 08 03:27:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.