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

ExecutorFuture class declaration should include MONGO_WARN_UNUSED_RESULT_CLASS

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.4
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Sharding 2020-02-24

    Description

      TheĀ ExecutorFuture class declaration is missing MONGO_WARN_UNUSED_RESULT_CLASS (see the SemiFuture class declaration as an example), and as a result, there is no compile error if an ExecutorFuture continuation chain is ended without a call to get/getNoThrow/getAsync.

      Attachments

        Activity

          People

            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: