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

db.serverStatus.metrics.document.inserted is double what it should be

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Diagnostics
    • None
    • ALL

    Description

      It is incremented by two with each insert:

      > db.serverStatus().metrics.document.inserted
      NumberLong(24322)
      > db.foo.insert({});
      WriteResult({ "nInserted" : 1 })
      > db.serverStatus().metrics.document.inserted
      NumberLong(24324)
      

      This is not due to the matching inserts to the oplog as this host is a standalone.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: