<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:33 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-2224] mongoc_collection_read_write_command_with_opts obeys read preference</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2224</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;In 1.5.0 we released a set of generic command methods that let the user declare if she was reading, writing, or reading &lt;b&gt;and&lt;/b&gt; writing. This excused libmongoc from maintaining a list of commands that required special logic for applying read preference, read concern, and write concern. For example, mongoc_collection_read_command_with_opts applies read concern from the client, but mongoc_collection_write_command_with_opts does not. See &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1527&quot; title=&quot;Add mongoc_client_[read|write|read_write]_command_with_opts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1527&quot;&gt;&lt;del&gt;CDRIVER-1527&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The bug is, mongoc_collection_read_write_command_with_opts obeys read preference: it selects a secondary when connected to a replica set, or sends $readPreference and sets slaveOk when talking to a mongos. Same for mongoc_database_read_write_command_with_opts and mongoc_client_read_write_command_with_opts.&lt;/p&gt;</description>
                <environment></environment>
        <key id="408848">CDRIVER-2224</key>
            <summary>mongoc_collection_read_write_command_with_opts obeys read preference</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="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Wed, 26 Jul 2017 22:50:10 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:34 +0000</updated>
                            <resolved>Thu, 27 Jul 2017 18:32:08 +0000</resolved>
                                    <version>1.5.0</version>
                                    <fixVersion>1.8.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1635009" author="xgen-internal-githook" created="Fri, 28 Jul 2017 20:57:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;username&apos;: &apos;ajdavis&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2224&quot; title=&quot;mongoc_collection_read_write_command_with_opts obeys read preference&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2224&quot;&gt;&lt;del&gt;CDRIVER-2224&lt;/del&gt;&lt;/a&gt; read_write_command funcs must ignore read prefs&lt;/p&gt;

&lt;p&gt;The command functions mongoc_client_read_write_command_with_opts,&lt;br/&gt;
mongoc_database_read_write_command_with_opts, and&lt;br/&gt;
mongoc_collection_read_write_command_with_opts now ignore the read_prefs&lt;br/&gt;
parameter.&lt;/p&gt;

&lt;p&gt;The read prefs parameter was included by mistake in libmongoc 1.5.&lt;br/&gt;
A command that writes must not obey a read preference.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/b1450d176c3456031f41658f646ef9daadcf7179&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/b1450d176c3456031f41658f646ef9daadcf7179&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="553431">CDRIVER-2678</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht3jnb:</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>