[SERVER-13587] ndeleted in system.profile documents reports 1 too few documents removed Created: 14/Apr/14  Updated: 11/Jul/16  Resolved: 01/May/14

Status: Closed
Project: Core Server
Component/s: Diagnostics, Write Ops
Affects Version/s: 2.6.0
Fix Version/s: 2.6.2, 2.7.0

Type: Bug Priority: Minor - P4
Reporter: Norman Graham Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: ALL
Backport Completed:
Steps To Reproduce:

for (var i = 0; i < 1000; ++i) {db.rmtest.insert({_id:i, s:"s_"+(i%100)})}
db.setProfilingLevel(2)
db.rmtest.remove({s:"s_0"},true)
db.rmtest.remove({s:"s_0"},false)
db.rmtest.remove({s:"s_1"},{justOne:true})
db.rmtest.remove({s:"s_1"},{justOne:false})
db.rmtest.remove({s:"s_2"},{justOne:true, writeConcern:{w:"majority",j:true}})
db.system.profile.find({ns:"test.rmtest"}).pretty()

Participants:

 Description   

Documents in the system.profile collection for remove operations contain a ndeleted field set to nRemoved - 1.



 Comments   
Comment by Githook User [ 25/May/14 ]

Author:

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

Message: SERVER-13587 ndeleted in system.profile documents reports 1 too few documents removed

(cherry picked from commit 6c2cfda2d60f0fda51bb389449b7defff9704b73)
Branch: v2.6
https://github.com/mongodb/mongo/commit/93dda51140446d51c5be01aafd2cc8fecb7eff31

Comment by Githook User [ 01/May/14 ]

Author:

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

Message: SERVER-13587 ndeleted in system.profile documents reports 1 too few documents removed
Branch: master
https://github.com/mongodb/mongo/commit/6c2cfda2d60f0fda51bb389449b7defff9704b73

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