<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:14:35 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-27244] Status class should have gnu::warn_unused_result attribute</title>
                <link>https://jira.mongodb.org/browse/SERVER-27244</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Far too many places are silently not checking the Statuses returned by functions. We should add this attribute and make all existing silent ignores either check the Status or use a void cast to explicitly ignore it.&lt;/p&gt;</description>
                <environment></environment>
        <key id="335360">SERVER-27244</key>
            <summary>Status class should have gnu::warn_unused_result attribute</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="adam.martin@mongodb.com">ADAM Martin</assignee>
                                    <reporter username="mathias@mongodb.com">Mathias Stearn</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Dec 2016 00:51:57 +0000</created>
                <updated>Wed, 6 Dec 2017 21:11:30 +0000</updated>
                            <resolved>Mon, 19 Jun 2017 17:17:29 +0000</resolved>
                                                    <fixVersion>3.5.9</fixVersion>
                                    <component>Internal Code</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1600872" author="xgen-internal-githook" created="Mon, 19 Jun 2017 17:14:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;adamlsd&apos;, u&apos;name&apos;: u&apos;ADAM David Alan Martin&apos;, u&apos;email&apos;: u&apos;adam.martin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27244&quot; title=&quot;Status class should have gnu::warn_unused_result attribute&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27244&quot;&gt;&lt;del&gt;SERVER-27244&lt;/del&gt;&lt;/a&gt; Status usage compile-time error.&lt;/p&gt;

&lt;p&gt;This change activates the compile-time checking for unused&lt;br/&gt;
`mongo::Status` results.  A few more `transitional_ignore`&lt;br/&gt;
calls were needed for a few more tests which appeared.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3542249772f1a9b836d1f9e97f631dc922877c72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3542249772f1a9b836d1f9e97f631dc922877c72&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1600344" author="xgen-internal-githook" created="Mon, 19 Jun 2017 04:53:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;adamlsd&apos;, u&apos;name&apos;: u&apos;ADAM David Alan Martin&apos;, u&apos;email&apos;: u&apos;adam.martin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27244&quot; title=&quot;Status class should have gnu::warn_unused_result attribute&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27244&quot;&gt;&lt;del&gt;SERVER-27244&lt;/del&gt;&lt;/a&gt; Turn on `Status::transitional_ignore`.&lt;/p&gt;

&lt;p&gt;The enterprise module has a few ignored `Status` and&lt;br/&gt;
`StatusWith` cases.  These cases have been marked&lt;br/&gt;
`transitional_ignore` to permit enabling the compile&lt;br/&gt;
time enforcement of status checking on Clang based&lt;br/&gt;
builds.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/commit/53c5f4005ce7da304ee8840ac062278a25ffbf29&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-enterprise-modules/commit/53c5f4005ce7da304ee8840ac062278a25ffbf29&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1600337" author="xgen-internal-githook" created="Mon, 19 Jun 2017 04:33:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;adamlsd&apos;, u&apos;name&apos;: u&apos;ADAM David Alan Martin&apos;, u&apos;email&apos;: u&apos;adam.martin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27244&quot; title=&quot;Status class should have gnu::warn_unused_result attribute&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27244&quot;&gt;&lt;del&gt;SERVER-27244&lt;/del&gt;&lt;/a&gt; Fix Lint in compiler_gcc.h&lt;/p&gt;

&lt;p&gt;A comment describing the new `MONGO_WARN_UNUSED_RESULT` flag went&lt;br/&gt;
a few characters over the 100 character limit.  Re-ran clang&lt;br/&gt;
format.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ead729bb5a801ab925c6b06de940e7ba9a738261&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ead729bb5a801ab925c6b06de940e7ba9a738261&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1600318" author="xgen-internal-githook" created="Mon, 19 Jun 2017 03:47:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;adamlsd&apos;, u&apos;name&apos;: u&apos;ADAM David Alan Martin&apos;, u&apos;email&apos;: u&apos;adam.martin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27244&quot; title=&quot;Status class should have gnu::warn_unused_result attribute&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27244&quot;&gt;&lt;del&gt;SERVER-27244&lt;/del&gt;&lt;/a&gt; Status usage compile-time facilities.&lt;/p&gt;

&lt;p&gt;There are numerous places in the codebase where `mongo::Status` or&lt;br/&gt;
`mongo::StatusWith&amp;lt; T &amp;gt;` objects are returned and never checked.&lt;br/&gt;
Many of these are innocuous, but many of them are potentially&lt;br/&gt;
severe bugs.  This change introduces facilities to permit&lt;br/&gt;
compile-time warning of unchecked `Status` and `StatusWith` usage&lt;br/&gt;
on clang compilers.  It introduces an `ignore` function which is&lt;br/&gt;
useful to state that a specific &quot;ignored status&quot; case was&lt;br/&gt;
intentional.  It not presently an error, in clang builds, to&lt;br/&gt;
forget to check a `Status` &amp;#8211; this will come in a later commit.&lt;/p&gt;

&lt;p&gt;This also introduces a `transitional_ignore` function, which allows&lt;br/&gt;
for easy continual auditing of the codebase for current &quot;whitelisted&quot;&lt;br/&gt;
unchecked-status instances.  All present &quot;ignored status&quot; cases&lt;br/&gt;
have been marked `transitional_ignore`.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9abef6f25aadfd04309cb2219068097f93dc961d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9abef6f25aadfd04309cb2219068097f93dc961d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1585977" author="adam.martin" created="Fri, 2 Jun 2017 14:53:10 +0000"  >&lt;p&gt;C+&lt;ins&gt;17 introduced `[&lt;span class=&quot;error&quot;&gt;&amp;#91;nodiscard&amp;#93;&lt;/span&gt;]` as a new attribute to provide this kind of functionality as well.  We may wish to have some kind of `MONGO_NODISCARD` macro to allow us to use the more portable C&lt;/ins&gt;+17 attribute when the time comes, and such a macro lets us use `gnu::warn_unused_result` where supported, in the meantime.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 2 Jun 2017 14:53:10 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 34 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 34 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>adam.martin@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjplz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht0gz3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1754">Platforms 2017-06-19</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hs4nfb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>