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'

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.2.3, 3.3.0
    • Affects Version/s: None
    • Component/s: Storage
    • Fully Compatible
    • ALL
    • Sharding E (01/08/16)

      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
      

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

              Created:
              Updated:
              Resolved: