<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:09 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-2094] mongoc_bulk_operation_new does not set same fields as _mongoc_bulk_operation_new</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2094</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;As best I understand it, these functions are intended as follows:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;tt&gt;mongoc_bulk_operation_new&lt;/tt&gt; &amp;#8211; for other language drivers to construct client/collection/database agnostic bulk operations&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;_mongoc_bulk_operation_new&lt;/tt&gt; &amp;#8211; for libmongoc to construct bulk operations for it&apos;s own bulk API&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;While &lt;tt&gt;_mongoc_bulk_operation_new&lt;/tt&gt; calls &lt;tt&gt;mongoc_bulk_operation_new&lt;/tt&gt;, it goes on to set several additional fields, such as &lt;tt&gt;executed&lt;/tt&gt; and &lt;tt&gt;flags&lt;/tt&gt;.  Some are set in &lt;tt&gt;mongoc_bulk_operation_new&lt;/tt&gt; but in subtly different ways.&lt;/p&gt;

&lt;p&gt;As wrapper library developers, we&apos;re concerned that we&apos;ll have to continually monitor the delta between these functions and patch how we configure the &lt;tt&gt;mongoc_bulk_operation_t&lt;/tt&gt; based on what we see done in &lt;tt&gt;_mongoc_bulk_operation_new&lt;/tt&gt; and the places in the code that call it.&lt;/p&gt;

&lt;p&gt;We suggest harmonizing these two (or creating a separate initializer), ideally building the libmongoc bulk implementation the same way an external wrapper would, rather than continuing with the split initialization that exists today.&lt;/p&gt;</description>
                <environment></environment>
        <key id="367103">CDRIVER-2094</key>
            <summary>mongoc_bulk_operation_new does not set same fields as _mongoc_bulk_operation_new</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="david.golden@mongodb.com">David Golden</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Mar 2017 21:15:23 +0000</created>
                <updated>Tue, 7 Mar 2023 10:45:48 +0000</updated>
                                                                            <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                        <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|hsx2p3:</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>