[DOCS-7423] Comment on: "manual/reference/command/getLastError.txt" Created: 15/Mar/16  Updated: 11/Jul/16  Resolved: 14/Apr/16

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

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Steve Renaker (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.org/manual/reference/command/getLastError/#getLastError.n
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4
Screen Resolution: 2560 x 1440
repo: docs
source: reference/command/getLastError


Participants:
Days since reply: 7 years, 44 weeks ago

 Description   

"For an update operation, if the update operation results in no change to the document, such as setting the value of the field to its current value, the number of matched documents may be smaller than the number of documents actually modified. If the update includes the upsert:true option and results in the creation of a new document, n returns the number of documents inserted."

This doesn't make sense, should it read, "...the number of <modified> documents may be smaller then the number of documents actually <matched>.



 Comments   
Comment by Githook User [ 14/Apr/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-7423: fixed wording of getLastError.n output description

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v2.6
https://github.com/mongodb/docs/commit/f0372da7ec403d2e36a32f7ad84dd83f306e9228

Comment by Githook User [ 14/Apr/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-7423: changed wording for getLastError.n entry

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v2.6
https://github.com/mongodb/docs/commit/9443b014fcb22f62cb1736c069575cdfd0f14192

Comment by Githook User [ 14/Apr/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-7423: fixed wording of getLastError.n output description

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/980b14c034b3e9360fbcbe945b0d8ef42c7689ca

Comment by Githook User [ 14/Apr/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-7423: changed wording for getLastError.n entry

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/e93f49b0c8b92f17adbcadfefc9add0eb7e3277e

Comment by Githook User [ 14/Apr/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-7423: fixed wording of getLastError.n output description

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v3.0
https://github.com/mongodb/docs/commit/f00df257b35eaad9f9e417f84a91ada67e0534c4

Comment by Githook User [ 14/Apr/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-7423: changed wording for getLastError.n entry

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v3.0
https://github.com/mongodb/docs/commit/4b4e799dd28c85fd90ceccef2455058cd857053d

Comment by Steve Renaker (Inactive) [ 28/Mar/16 ]

I haven't been able to verify that this is true. I've tried various kinds of CRUD operations and I haven't been able to find one that succeeds but still makes getLastError return n: 0. The example given, where a document is updated with its current value, causes getLastError to return n: 1 in my testing. Am I missing something?

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