[SERVER-12953] nModified is not updated in capability mode. Created: 27/Feb/14  Updated: 28/Feb/14  Resolved: 28/Feb/14

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

Type: Bug Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Unassigned
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Running write_result.js with --shell-write-mode=compatibility will give error that a basic update operation returns nModified==0 instead of 1. The same error arise in basic multi-update test case.



 Comments   
Comment by Scott Hernandez (Inactive) [ 28/Feb/14 ]

This is by design because nModified is not returned on the getLastError path (either by mongod nor mongos in a sharded config). nModified is only returned for write commands in the new api.

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