Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2572

Only enable counters for shared memory

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.10.0
    • None
    • tests
    • None

    Description

      The shared memory counters fall back to using a regular malloc'ed segment when shared memory is not available. This doesn't seem useful, and means we do an atomic increment every time an operation does an update. So instead, if shared memory segments aren't available, the counters should do nothing.

      Additionally, we don't have any tests that I'm aware of for the contents of the shared-memory counters. So if we introduce bugs in incrementing the number of active cursors or the number of commands executed, etc., we won't catch it. Create some basic tests that counters are correctly incremented and decremented in response to driver events.

      Attachments

        Activity

          People

            kevin.albertson@mongodb.com Kevin Albertson
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: