<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:12:31 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-1431] Document thread safety for mongoc_client_pool functions</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1431</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;The docs for mongoc_client_pool_set_apm_callbacks say:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This function can only be called once on a pool, and must be called before the first mongoc_client_pool_pop.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;There&apos;s no check for whether or not a client has been popped already in this function, so I think we should add that.&lt;/p&gt;

&lt;p&gt;This might also be kind of a silly point, but I think this function should lock the client pool mutex, or (maybe) be described as &quot;not thread safe&quot; in the docs. In reality I&apos;m sure nobody calls this function from multiple threads, but if someone did, the behavior would be weird.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;mongoc_client_pool_set_error_api&lt;/tt&gt; should probably lock the pool&apos;s mutex or be described as &quot;not thread safe&quot; in the docs as well. I&apos;m guessing nobody actually calls this from multiple threads either, so I don&apos;t think it&apos;s a &quot;real&quot; bug, but it does look a bit strange.&lt;/p&gt;</description>
                <environment></environment>
        <key id="304743">CDRIVER-1431</key>
            <summary>Document thread safety for mongoc_client_pool functions</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="ian.boros@mongodb.com">Ian Boros</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Jul 2016 14:18:41 +0000</created>
                <updated>Sat, 28 Jan 2017 13:05:49 +0000</updated>
                            <resolved>Fri, 27 Jan 2017 03:19:08 +0000</resolved>
                                                    <fixVersion>1.6.0</fixVersion>
                                    <component>docs</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1487486" author="xgen-internal-githook" created="Sat, 28 Jan 2017 13:05:49 +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-1431&quot; title=&quot;Document thread safety for mongoc_client_pool functions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1431&quot;&gt;&lt;del&gt;CDRIVER-1431&lt;/del&gt;&lt;/a&gt; document pool&apos;s thread safety&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/c70bc1678c5fb4952d8f2c3e76d92b47a20a7d54&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/c70bc1678c5fb4952d8f2c3e76d92b47a20a7d54&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1341267" author="jesse" created="Fri, 29 Jul 2016 14:19:39 +0000"  >&lt;p&gt;Good idea. These functions - ones that must be called before the first pop - should take the mutex, check if any clients have been popped yet, and fail if so. They should be documented as &quot;must be called before first client is popped&quot;, rather than being document as &quot;not thread-safe&quot;.&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|hrbojj:</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="1558">C Driver 2017 2 - Feb 10, 2018</customfieldvalue>

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