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

Remove IntrusiveCounter in favor of RefCountable

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Epic Link:
    • Sprint:
      Query 2018-07-16

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: