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

Only enable counters for shared memory

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: None
    • Component/s: Testing
    • None

      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.

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

              Created:
              Updated:
              Resolved: