<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:00 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-368] Lazily call ismaster instead of doing it during connect</title>
                <link>https://jira.mongodb.org/browse/CXX-368</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;We shouldn&apos;t be calling isMaster during the DBClientConnection::_connect method:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/blob/legacy/src/mongo/client/dbclient.cpp#L1398&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/blob/legacy/src/mongo/client/dbclient.cpp#L1398&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We should populate server version specific values (like maxBsonObjectSize) upon the first request instead.&lt;/p&gt;</description>
                <environment></environment>
        <key id="162220">CXX-368</key>
            <summary>Lazily call ismaster instead of doing it during connect</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="-1">Unassigned</assignee>
                                    <reporter username="tyler@10gen.com">Tyler Brock</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Mon, 6 Oct 2014 23:05:43 +0000</created>
                <updated>Wed, 7 Jan 2015 16:08:30 +0000</updated>
                            <resolved>Wed, 7 Jan 2015 16:07:55 +0000</resolved>
                                    <version>legacy-1.0.0-rc0</version>
                                                    <component>Implementation</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="792306" author="tyler@10gen.com" created="Mon, 22 Dec 2014 19:34:23 +0000"  >&lt;p&gt;Hey Alex, I&apos;m going to move your question into it&apos;s own ticket: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-456&quot; title=&quot;Why can&amp;#39;t driver connect?&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-456&quot;&gt;&lt;del&gt;CXX-456&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="792227" author="alexhultman" created="Mon, 22 Dec 2014 18:03:05 +0000"  >&lt;p&gt;Hi.&lt;/p&gt;

&lt;p&gt;I&apos;m having some strange problems with the C++ driver. I have been digging for some time.&lt;/p&gt;

&lt;p&gt;I&apos;m programming against Fedora 21&apos;s libmongoclient (2.4.9) and it works. But since I&apos;m deploying to Amazon I need to compile statically so I clone from mongo-cxx-driver. This worked fine last week, but today I pulled the latest rc3 and now I can&apos;t even get the hello world app to work (slightly modified):&lt;/p&gt;

&lt;p&gt;#include &amp;lt;cstdlib&amp;gt;&lt;br/&gt;
#include &amp;lt;iostream&amp;gt;&lt;br/&gt;
#include &amp;lt;string&amp;gt;&lt;br/&gt;
#include &quot;mongo/client/dbclient.h&quot; // for the driver&lt;br/&gt;
using namespace std;&lt;/p&gt;

&lt;p&gt;void run() {&lt;br/&gt;
  mongo::DBClientConnection c;&lt;/p&gt;

&lt;p&gt;  string host = &quot;127.0.0.1&quot;;&lt;br/&gt;
  mongo::HostAndPort hp(host, 27017);&lt;/p&gt;

&lt;p&gt;  string err;&lt;br/&gt;
  c.connect(hp, err);&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;int main() {&lt;br/&gt;
    mongo::client::initialize();&lt;br/&gt;
    try &lt;/p&gt;
{
        run();
        std::cout &amp;lt;&amp;lt; &quot;connected ok&quot; &amp;lt;&amp;lt; std::endl;
    }
&lt;p&gt; catch( const mongo::DBException &amp;amp;e ) &lt;/p&gt;
{
        std::cout &amp;lt;&amp;lt; &quot;caught &quot; &amp;lt;&amp;lt; e.what() &amp;lt;&amp;lt; std::endl;
    }
&lt;p&gt;    return EXIT_SUCCESS;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;This code, and my fails to connect and throws this exception:&lt;/p&gt;

&lt;p&gt;caught DBClientBase::findN: transport error: 127.0.0.1:27017 ns: admin.$cmd query: &lt;/p&gt;
{ ismaster: 1 }

&lt;p&gt;I tried resetting to rc2 and that revision actually connects without exceptions and I can download a BSONObject, however - this version just returns EOO for fields that actually exists (I can see them in Robomongo and the whole program works with Fedora&apos;s libmongoclient).&lt;/p&gt;

&lt;p&gt;But since I cannot even get the hello world sample to work something has to be wrong.&lt;/p&gt;

&lt;p&gt;I&apos;m compiling with:&lt;/p&gt;

&lt;p&gt;sudo scons --prefix=/usr --ssl -j 8 install&lt;/p&gt;

&lt;p&gt;And I&apos;m cloning with:&lt;/p&gt;

&lt;p&gt;git clone &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver.git&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver.git&lt;/a&gt;&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|hs2udr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>141343</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>