<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:33:29 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>[GODRIVER-75] Use defer for mutex unlocking</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-75</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Much of the monitoring code I&apos;ve looked at relies on manual mutex unlocking.  This is not generally idiomatic Go (except in hot code paths) and leads to errors, as shown in &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-74&quot; title=&quot;Dangling subscriberLocks in cluster and server monitors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-74&quot;&gt;&lt;del&gt;GODRIVER-74&lt;/del&gt;&lt;/a&gt;.  Until we know there&apos;s a performance problem caused by &lt;tt&gt;defer&lt;/tt&gt;, avoiding &lt;tt&gt;defer&lt;/tt&gt; is premature optimization that increases the likelihood of bugs.&lt;/p&gt;

&lt;p&gt;We should change all unlocking to use &lt;tt&gt;defer&lt;/tt&gt; when possible.  (N.B. For whoever does this work: note that it&apos;s &lt;b&gt;not&lt;/b&gt; possible inside a &lt;tt&gt;for&lt;/tt&gt; loop, as &lt;tt&gt;defer&lt;/tt&gt; is function scoped, not loop scoped.)&lt;/p&gt;</description>
                <environment></environment>
        <key id="424055">GODRIVER-75</key>
            <summary>Use defer for mutex unlocking</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="13201">Fixed</resolution>
                                        <assignee username="sam.rossi@mongodb.com">Samuel Rossi</assignee>
                                    <reporter username="david.golden@mongodb.com">David Golden</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 Sep 2017 14:58:37 +0000</created>
                <updated>Sat, 28 Oct 2023 11:40:00 +0000</updated>
                            <resolved>Wed, 25 Oct 2017 16:30:11 +0000</resolved>
                                                    <fixVersion>0.0.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1722282" author="xgen-internal-githook" created="Fri, 10 Nov 2017 04:41:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Saghm Rossi&apos;, &apos;username&apos;: &apos;saghm&apos;, &apos;email&apos;: &apos;saghmrossi@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-75&quot; title=&quot;Use defer for mutex unlocking&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-75&quot;&gt;&lt;del&gt;GODRIVER-75&lt;/del&gt;&lt;/a&gt; Use defer for mutex unlocking&lt;br/&gt;
Branch: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-33&quot; title=&quot;Implement Extended Json Specification&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-33&quot;&gt;&lt;del&gt;GODRIVER-33&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo-go-driver/commit/f06f1a772cf5f212bdf0f3bef46bf8bea0deeb4d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-go-driver/commit/f06f1a772cf5f212bdf0f3bef46bf8bea0deeb4d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1708789" author="sam.rossi" created="Wed, 25 Oct 2017 16:30:11 +0000"  >&lt;p&gt;Git commit: &lt;a href=&quot;https://github.com/10gen/mongo-go-driver/commit/f06f1a772cf5f212bdf0f3bef46bf8bea0deeb4d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-go-driver/commit/f06f1a772cf5f212bdf0f3bef46bf8bea0deeb4d&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht64v3:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>