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

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

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Diagnostics
    • None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: