<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:01:56 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-1252] Tailable cursors only work once</title>
                <link>https://jira.mongodb.org/browse/CXX-1252</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;When using a tailable cursor, only the first iteration to &lt;tt&gt;cursor::end()&lt;/tt&gt; works and subsequent iteration attempts find nothing. See the attached file for an example.&lt;/p&gt;

&lt;p&gt;This is almost certainly a consequence of the way cursors are marked dead in the &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/e2c086fe158c9a21f1d168ec13800b1a04e2211f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;fix for CXX-1001 and CXX-1100&lt;/a&gt;, which should not happen if the cursor is tailable.&lt;/p&gt;

&lt;p&gt;I also see that we have no integration tests for tailable cursors, or we&apos;d have caught this breakage earlier.&lt;/p&gt;</description>
                <environment></environment>
        <key id="364239">CXX-1252</key>
            <summary>Tailable cursors only work 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="david.golden@mongodb.com">David Golden</assignee>
                                    <reporter username="david.golden@mongodb.com">David Golden</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 Mar 2017 14:49:52 +0000</created>
                <updated>Wed, 28 Feb 2018 19:16:22 +0000</updated>
                            <resolved>Fri, 17 Mar 2017 02:16:36 +0000</resolved>
                                    <version>3.1.1</version>
                                    <fixVersion>3.2.0-rc0</fixVersion>
                    <fixVersion>3.1.4</fixVersion>
                                    <component>Implementation</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1526411" author="xgen-internal-githook" created="Fri, 17 Mar 2017 02:11:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;xdg&apos;, u&apos;name&apos;: u&apos;David Golden&apos;, u&apos;email&apos;: u&apos;xdg@xdg.me&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1252&quot; title=&quot;Tailable cursors only work once&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1252&quot;&gt;&lt;del&gt;CXX-1252&lt;/del&gt;&lt;/a&gt; Tailable cursors only work once&lt;/p&gt;

&lt;p&gt;The way cursors were marked dead to support multiple iterators&lt;br/&gt;
on the same cursor had a side effect of preventing tailable cursors&lt;br/&gt;
from working.&lt;/p&gt;

&lt;p&gt;This commit makes cursors know if they are tailable and rather than&lt;br/&gt;
marking tailable cursors dead, they are marked &quot;pending&quot; so they&lt;br/&gt;
can restart if re-iterated.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/32b1b26c3f0c1c71962743c31d2ac79eab1a9585&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/32b1b26c3f0c1c71962743c31d2ac79eab1a9585&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="151393" name="tailable-broken.cpp" size="1414" author="david.golden@mongodb.com" created="Mon, 13 Mar 2017 14:48:40 +0000"/>
                    </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|hswne7:</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="1601">Perl/CXX 2017-03-24</customfieldvalue>

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