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

XMLWordPrintableJSON

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

      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
              Reporter:
              Mathias Stearn
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: