<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:06:23 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-2580] Docs: Missing Documentation for Change Streams</title>
                <link>https://jira.mongodb.org/browse/CXX-2580</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;We are missing a tutorial on &lt;a href=&quot;https://www.mongodb.com/docs/manual/changeStreams/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;changestreams&lt;/a&gt; for C++, we used the example in the &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/blob/master/examples/mongocxx/change_streams.cpp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;repository&lt;/a&gt; instead for build fest.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2146507">CXX-2580</key>
            <summary>Docs: Missing Documentation for Change Streams</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="steve.silvester@mongodb.com">Steve Silvester</reporter>
                        <labels>
                            <label>buildfest-2022</label>
                    </labels>
                <created>Tue, 27 Sep 2022 20:57:13 +0000</created>
                <updated>Sat, 28 Oct 2023 11:26:42 +0000</updated>
                            <resolved>Wed, 8 Mar 2023 18:43:38 +0000</resolved>
                                                    <fixVersion>3.8.0</fixVersion>
                                    <component>Docs Examples</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5259490" author="xgen-internal-githook" created="Wed, 8 Mar 2023 18:43:26 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-2580&quot; title=&quot;Docs: Missing Documentation for Change Streams&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-2580&quot;&gt;&lt;del&gt;CXX-2580&lt;/del&gt;&lt;/a&gt; fix change stream examples (#938)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;use mongocxx::pool&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Will be necessary to insert documents in a separate thread.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;insert documents in a separate thread&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;use username: alice to satisfy $match stage in Example 4&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;update examples&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Repeat iteration until receiving the first document.&lt;br/&gt;
This currently infinitely loops due to no events being generated.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;use atomic store&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;fixes this error on g++7.5.0:&lt;br/&gt;
```&lt;br/&gt;
/home/ubuntu/code/mongo-cxx-driver-CXX2580/src/mongocxx/test/change_streams.cpp:448:43: error: use of deleted function &apos;std::atomic&amp;lt;bool&amp;gt;::atomic(const std::atomic&amp;lt;bool&amp;gt;&amp;amp;)&apos;&lt;br/&gt;
     std::atomic_bool insert_thread_done = false;&lt;br/&gt;
                                           ^~~~~&lt;br/&gt;
```&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;use string_view compare, not ==&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;fixes this error on g++7.5.0: `no match for &apos;operator==&apos;`&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;link to thread library in test_driver&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;construct bsoncxx::document::value explicitly&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Fixes VS2015 error:&lt;/p&gt;

&lt;p&gt;C:\local\boost_1_60_0\boost/optional/optional.hpp(629): error C2664: &apos;void boost::optional_detail::optional_base&amp;lt;T&amp;gt;::assign_value(bsoncxx::v_noabi::document::value &amp;amp;&amp;amp;,boost::optional_detail::optional_base&amp;lt;T&amp;gt;::is_reference_tag)&apos;: cannot convert argument 1 from &apos;const bsoncxx::v_noabi::document::view&apos; to &apos;const bsoncxx::v_noabi::document::value &amp;amp;&apos; &lt;span class=&quot;error&quot;&gt;&amp;#91;C:\data\mci\61c6a13adf46b665b82425a7e8fac2db\mongo-cxx-driver\build\src\mongocxx\test\test_driver.vcxproj&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Update src/mongocxx/test/change_streams.cpp&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Co-authored-by: Roberto C. S&#225;nchez &amp;lt;roberto@connexer.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/7d2c24e8f93c5f3d50236a9cd2faa6c8db4b703a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/7d2c24e8f93c5f3d50236a9cd2faa6c8db4b703a&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="444412">CXX-1450</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_21553" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Quarter</customfieldname>
                        <customfieldvalues>
                                        <label>FY24Q1</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr1k1p:fzz</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>