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

Change the SimpleMemoryUsageTracker API to throw upon calling add() with too big a value

    • Query Optimization

      Currently, the API of SimpleMemoryUsageTracker is such that the call to add() must be followed by a call to withinMemoryLimit() to see if we should hit an assertion that we have used too much memory. We should consider a different API where the call to add() throws if we would exceed the _maxAllowedMemoryUsageBytes by performing this add().

      Maybe this should also be applied to the MemoryUsageTracker class as well?

      CC Nicholas Zolnierz 

            Assignee:
            Unassigned Unassigned
            Reporter:
            militsa.sotirova@mongodb.com Militsa Sotirova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: