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

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.3, 3.3.0
    • Component/s: Storage
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: