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

Add per-operation locking statistics summary to slow operation log output

    • Fully Compatible

      We should restore locking summary statistics of some sort to the slow query log.

      Example of 2.6 output (see "locks"):

      2015-01-09T18:37:07.163-0500 [conn1] query test.foo planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:1 nscannedObjects:1 keyUpdates:0 numYields:0 locks(micros) r:65 nreturned:1 reslen:42 0ms
      

      Output as of ~2.8.0-rc5:

      2015-01-09T18:40:26.683-0500 I QUERY    [conn1] query test.foo planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:0 nscannedObjects:1 keyUpdates:0 writeConflicts:0 numYields:0 nreturned:1 reslen:42 0ms
      

      Also need to reenable jstests/core/profile4.js.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            rassi J Rassi
            Votes:
            5 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: