<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:02:07 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>[CXX-1300] Prevent mongoc_init/mongoc_cleanup from running more than once</title>
                <link>https://jira.mongodb.org/browse/CXX-1300</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;mongocxx::instance prevents creation of an instance when a singleton instance exists, but it does not appear to prevent creating and destroying multiple instances serially, which would result in calling mongoc_init and mongoc_cleanup more than once.&lt;/p&gt;

&lt;p&gt;We should prevent this from happening and only ever allow a single instance to be created whether as a singleton or as a scoped object.&lt;/p&gt;</description>
                <environment></environment>
        <key id="371665">CXX-1300</key>
            <summary>Prevent mongoc_init/mongoc_cleanup from running more than once</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="9">Done</resolution>
                                        <assignee username="sam.rossi@mongodb.com">Samuel Rossi</assignee>
                                    <reporter username="david.golden@mongodb.com">David Golden</reporter>
                        <labels>
                    </labels>
                <created>Thu, 6 Apr 2017 19:06:12 +0000</created>
                <updated>Thu, 1 Jul 2021 18:27:43 +0000</updated>
                            <resolved>Wed, 24 May 2017 21:56:53 +0000</resolved>
                                                    <fixVersion>3.2.0-rc0</fixVersion>
                                    <component>Implementation</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="3913083" author="david.golden" created="Thu, 1 Jul 2021 18:27:43 +0000"  >&lt;p&gt;Hi, Puya.  It&apos;s been a very long time, but I think it was in libsasl.&lt;/p&gt;</comment>
                            <comment id="3912958" author="JIRAUSER1253284" created="Thu, 1 Jul 2021 17:39:23 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=david.golden&quot; class=&quot;user-hover&quot; rel=&quot;david.golden&quot;&gt;david.golden&lt;/a&gt; Do you know where in SASL this singleton is propagated from? I would like to file a bug ticket upstream to see if it is possible to remove the limitation so that mongoc, mongocxx and my library can avoid having to enforce singleton ad infinitum.&lt;/p&gt;</comment>
                            <comment id="1579509" author="xgen-internal-githook" created="Wed, 24 May 2017 21:56:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;saghm&apos;, u&apos;name&apos;: u&apos;Saghm Rossi&apos;, u&apos;email&apos;: u&apos;saghmrossi@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1300&quot; title=&quot;Prevent mongoc_init/mongoc_cleanup from running more than once&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1300&quot;&gt;&lt;del&gt;CXX-1300&lt;/del&gt;&lt;/a&gt; Ensure that only one mongocxx::instance can ever be created&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/84894600054b978408422b4203bdd0e6a8df20f3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/84894600054b978408422b4203bdd0e6a8df20f3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1579330" author="david.golden" created="Wed, 24 May 2017 19:24:14 +0000"  >&lt;p&gt;IIRC, the problem is way upstream.  &lt;tt&gt;mongoc_cleanup&lt;/tt&gt; only ever runs once because libraries it depends on like SASL don&apos;t allow cleanup and reinitialization.  Thus, libmongoc explicitly doesn&apos;t allow this.  This is &lt;a href=&quot;http://mongoc.org/libmongoc/current/init-cleanup.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;documented in the C driver docs&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <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|hrarvr:</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="1675">Perl/CXX 2017-05-05</customfieldvalue>
    <customfieldvalue id="1715">Perl/CXX 2017-05-26</customfieldvalue>

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