<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:11:32 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>[CDRIVER-1092] mongoc_cursor_new_from_command_reply</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1092</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;When a user executes a command using mongoc_client_command() that returns a &quot;cursor document&quot;, such as executing &quot;aggregate&quot; and using the &quot;cursor&quot; option, we need a way for the user to create an actual mongoc_cursor_t from this document.&lt;/p&gt;</description>
                <environment></environment>
        <key id="264212">CDRIVER-1092</key>
            <summary>mongoc_cursor_new_from_command_reply</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="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="bjori">Hannes Magnusson</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Feb 2016 19:40:07 +0000</created>
                <updated>Wed, 10 Aug 2016 22:10:41 +0000</updated>
                            <resolved>Mon, 22 Feb 2016 23:25:07 +0000</resolved>
                                    <version>1.4.0</version>
                                    <fixVersion>1.4.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1315994" author="xgen-internal-githook" created="Wed, 6 Jul 2016 20:55:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1092&quot; title=&quot;mongoc_cursor_new_from_command_reply&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1092&quot;&gt;&lt;del&gt;CDRIVER-1092&lt;/del&gt;&lt;/a&gt; leak in command_simple_with_server_id&lt;/p&gt;

&lt;p&gt;Leak found in unreleased code.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/d974e86724137c8ddc9a1fd1572d60290495e621&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/d974e86724137c8ddc9a1fd1572d60290495e621&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1185450" author="xgen-internal-githook" created="Fri, 26 Feb 2016 02:53:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1092&quot; title=&quot;mongoc_cursor_new_from_command_reply&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1092&quot;&gt;&lt;del&gt;CDRIVER-1092&lt;/del&gt;&lt;/a&gt; leak in client_command_simple&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/97a5e10f8d5cdea98f467d72d48981ae3acb5cc4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/97a5e10f8d5cdea98f467d72d48981ae3acb5cc4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1182194" author="xgen-internal-githook" created="Tue, 23 Feb 2016 18:29:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1092&quot; title=&quot;mongoc_cursor_new_from_command_reply&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1092&quot;&gt;&lt;del&gt;CDRIVER-1092&lt;/del&gt;&lt;/a&gt; rename command_simple_with_hint.page&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/09428f274dd70d68e44716570859b2089ef3b1ab&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/09428f274dd70d68e44716570859b2089ef3b1ab&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1181878" author="bjori" created="Tue, 23 Feb 2016 15:35:22 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=derick&quot; class=&quot;user-hover&quot; rel=&quot;derick&quot;&gt;derick&lt;/a&gt; Its a new function that was added to replace &lt;a href=&quot;https://github.com/mongodb/mongo-php-driver/blob/master/php_phongo.c#L654-L718&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-php-driver/blob/master/php_phongo.c#L654-L718&lt;/a&gt; with &lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;mongoc_client_command_simple_with_hint (...);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;cursor = mongoc_cursor_new_from_command_reply (...);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="1181573" author="derick" created="Tue, 23 Feb 2016 10:43:43 +0000"  >&lt;p&gt;Neither the HHVM or PHP drivers use the mongoc_cursor_new_from_command_document() function, so which API call does this actually replace?&lt;/p&gt;</comment>
                            <comment id="1181507" author="xgen-internal-githook" created="Tue, 23 Feb 2016 08:30:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1092&quot; title=&quot;mongoc_cursor_new_from_command_reply&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1092&quot;&gt;&lt;del&gt;CDRIVER-1092&lt;/del&gt;&lt;/a&gt; finish updating symbol files&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/cc3792b811955c8710c4212475bb7b46d3dacb0e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/cc3792b811955c8710c4212475bb7b46d3dacb0e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1181246" author="jesse" created="Mon, 22 Feb 2016 23:24:52 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=driver-php&quot; class=&quot;user-hover&quot; rel=&quot;driver-php&quot;&gt;driver-php&lt;/a&gt;, check out how this is intended to be used for &quot;aggregate&quot;, etc., cursors:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/f3666/tests/test-mongoc-cursor.c#L636&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/blob/f3666/tests/test-mongoc-cursor.c#L636&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To avoid extra copying of the reply, you allocate a bson_t with bson_new, store the result of mongoc_client_command_simple_with_hint there, then donate the bson_t to mongoc_cursor_new_from_command_reply, which now owns the reply and is responsible for freeing it.&lt;/p&gt;</comment>
                            <comment id="1181243" author="xgen-internal-githook" created="Mon, 22 Feb 2016 23:21:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1092&quot; title=&quot;mongoc_cursor_new_from_command_reply&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1092&quot;&gt;&lt;del&gt;CDRIVER-1092&lt;/del&gt;&lt;/a&gt; mongoc_cursor_new_from_command_reply&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/f3666b35bf06b77e10b201a5a983971c6b9fda52&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/f3666b35bf06b77e10b201a5a983971c6b9fda52&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="268868">PHPC-602</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="276829">CDRIVER-1192</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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>CDRIVER-1062</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hshs8v:</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="918">C Driver 2016 sprint 3</customfieldvalue>

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