[SERVER-22058] 'not all control paths return a value' warning in non-MMAP V1 implementations of '::writingPtr' Created: 04/Jan/16  Updated: 21/Nov/16  Resolved: 05/Jan/16

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.2.3, 3.3.0

Type: Bug Priority: Trivial - P5
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: code-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Sharding E (01/08/16)
Participants:

 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



 Comments   
Comment by Githook User [ 14/Jan/16 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-22058 Fix warnings in non-MMAP V1 implementation of writingPtr
Branch: v3.2
https://github.com/mongodb/mongo/commit/9ab7297ce17bb4cf61d14ba627ae7bebbf7cff22

Comment by Githook User [ 05/Jan/16 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-22058 Fix warnings in non-MMAP V1 implementation of writingPtr
Branch: master
https://github.com/mongodb/mongo/commit/b3c4511611635692a46da21b7f9fc0e5131d1ef8

Generated at Thu Feb 08 03:59:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.