Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13587

ndeleted in system.profile documents reports 1 too few documents removed

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.6.0
    • 2.6.2, 2.7.0
    • Diagnostics, Write Ops
    • None
    • ALL
    • Hide

      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()

      Show
      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()

    Description

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

      Attachments

        Activity

          People

            randolph@mongodb.com Randolph Tan
            norman.graham@mongodb.com Norman Graham
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: