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

'not all control paths return a value' warning in non-MMAP V1 implementations of '::writingPtr'

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial - P5
    • Resolution: Fixed
    • None
    • 3.2.3, 3.3.0
    • Storage
    • Fully Compatible
    • ALL
    • Sharding E (01/08/16)

    Description

      Non-MMAP V1 implementations of the writingPtr method all report warnings because of the usage of invariant:

      e:\workspace\mongo\src\mongo\db\storage\ephemeral_for_test\ephemeral_for_test_recovery_unit.h(60) : warning C4715: 'mongo::EphemeralForTestRecoveryUnit::writingPtr' : not all control paths return a value
      ...
      e:\workspace\mongo\src\mongo\db\storage\wiredtiger\wiredtiger_recovery_unit.h(73) : warning C4715: 'mongo::WiredTigerRecoveryUnit::writingPtr' : not all control paths return a value
      

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: