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

Consider removing BatonHandle typedef

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • None
    • Service Arch

    Description

      Currently, the baton API defines a typedef of BatonHandle for std::shared_ptr<Baton>. It's come up serveral times that it's not obvious to readers from the name that BatonHandle provides the refcounting and other particular properties of shared_ptr that are often relied on when it is used.  Since this "handle"  doesn't provide any special properties and is just a typedef, it may be worth removing the typedef and just type std::shared_ptr<Baton> to remove this ambiguity.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            george.wangensteen@mongodb.com George Wangensteen
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: