<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:04 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-373] DocumentResult does not close cursor</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-373</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/master/mongo/document_result.go#L43&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/blob/master/mongo/document_result.go#L43&lt;/a&gt; should have a &lt;tt&gt;defer dr.cur.Close(context.Background())&lt;/tt&gt; right before it. This function may need a backwards breaking change of requiring a context as a param to get API parity.&lt;/p&gt;</description>
                <environment></environment>
        <key id="531846">GODRIVER-373</key>
            <summary>DocumentResult does not close cursor</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="matthew.chiaravalloti@mongodb.com">Matthew Chiaravalloti</assignee>
                                    <reporter username="eric.daniels@mongodb.com">Eric Daniels</reporter>
                        <labels>
                            <label>neweng</label>
                            <label>newgrad</label>
                    </labels>
                <created>Fri, 20 Apr 2018 19:48:35 +0000</created>
                <updated>Sat, 28 Oct 2023 11:39:39 +0000</updated>
                            <resolved>Thu, 13 Sep 2018 20:04:19 +0000</resolved>
                                                    <fixVersion>0.0.14</fixVersion>
                                    <component>CRUD</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2002385" author="xgen-internal-githook" created="Thu, 13 Sep 2018 20:00:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matthew Chiaravalloti&apos;, &apos;email&apos;: &apos;matthew.chiaravalloti@mongodb.com&apos;, &apos;username&apos;: &apos;mattChiaravalloti&apos;}
&lt;p&gt;Message: Add deferred call to close DocumentResult&apos;s cursor&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-373&quot; title=&quot;DocumentResult does not close cursor&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-373&quot;&gt;&lt;del&gt;GODRIVER-373&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: I7addfb359952a5abfccd40c59bf294d3e30be16a&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/e0b7d070208df5f52a9933c2c9761ebb2b0ad65d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/e0b7d070208df5f52a9933c2c9761ebb2b0ad65d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1871941" author="jeff.yemin" created="Mon, 23 Apr 2018 21:09:50 +0000"  >&lt;p&gt;For findOne style operations, the driver should automatically set the limit to -1 (or maybe 1...) and in that case the server will send a single document and no cursorId, making cursor.close essentially a no-op.&lt;/p&gt;

&lt;p&gt;But, you should still close the cursor here, because in the future cursor will hold other resources besides the server-side cursor (e.g. sessions).&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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>GODRIVER-521</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr9mxb:</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>