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

Remove IntrusiveCounter in favor of RefCountable

    • Fully Compatible
    • Query 2018-07-16

      IntrusiveCounter is a base class used to make a type suitable for use with boost::intrusive_ptr. It has surprising behavior under concurrency, which can lead to bugs such as SERVER-32007. RefCountable is a superior alternative. We should migrate existing uses of IntrusiveCounter to RefCountable, and delete the IntrusiveCounter code. As of this writing, the only remaining subclass of IntrusiveCounter is DocumentSource in the aggregation framework code.

            Assignee:
            martin.neupauer@mongodb.com Martin Neupauer
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: