<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:00:50 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-934] Remove database::stats()</title>
                <link>https://jira.mongodb.org/browse/CXX-934</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;It looks like the driver is missing implementation for database::stats().&lt;/p&gt;

&lt;p&gt;I see only its declaration in the class database.&lt;/p&gt;

&lt;p&gt;Please implement (or point me to the implementation if I missed it).&lt;/p&gt;</description>
                <environment></environment>
        <key id="294730">CXX-934</key>
            <summary>Remove database::stats()</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="backlog-cxx-driver">Backlog - CXX Driver Team</assignee>
                                    <reporter username="rustyx">Rustam Abdullaev</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Jun 2016 15:00:56 +0000</created>
                <updated>Mon, 19 Sep 2016 20:24:16 +0000</updated>
                            <resolved>Fri, 24 Jun 2016 20:45:29 +0000</resolved>
                                                    <fixVersion>3.0.2</fixVersion>
                                                        <votes>1</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1306311" author="acm" created="Fri, 24 Jun 2016 20:45:30 +0000"  >&lt;p&gt;Fixed by removing the declaration. We don&apos;t want to provide an implementation of this helper.&lt;/p&gt;</comment>
                            <comment id="1306309" author="xgen-internal-githook" created="Fri, 24 Jun 2016 20:44:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;acmorrow&apos;, u&apos;name&apos;: u&apos;Andrew Morrow&apos;, u&apos;email&apos;: u&apos;acm@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-934&quot; title=&quot;Remove database::stats()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-934&quot;&gt;&lt;del&gt;CXX-934&lt;/del&gt;&lt;/a&gt; Remove the unwanted and unimplemented database::stats helper declaration&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/8131c1689bd5d843dc628eb591ff51cb6baad312&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/8131c1689bd5d843dc628eb591ff51cb6baad312&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1306277" author="acm" created="Fri, 24 Jun 2016 20:23:00 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/503&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/503&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1304177" author="rustyx" created="Thu, 23 Jun 2016 14:22:05 +0000"  >&lt;p&gt;Yes that&apos;s what we&apos;re using - &lt;tt&gt;run_command(document{} &amp;lt;&amp;lt; &quot;dbStats&quot; &amp;lt;&amp;lt; 1 &amp;lt;&amp;lt; finalize);&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;So option b sounds good.&lt;/p&gt;</comment>
                            <comment id="1304053" author="acm" created="Thu, 23 Jun 2016 12:35:18 +0000"  >&lt;p&gt;Please note that modern design practices for MongoDB drivers suggests not implementing helpers like database::stats. Doing so in the past has lead to drivers with a proliferation of helpers that become obsolete as the server evolves, leading to maintenance headaches for the driver. Since this ticket can be resolved by either a) providing an implementing definition for database::stats or b) simply removing the declaration which never worked, we are leaning towards simply removing the declaration in light of the above view on helpers. The workaround is simply to invoke database::run_command directly.&lt;/p&gt;</comment>
                            <comment id="1297885" author="acm" created="Fri, 17 Jun 2016 15:09:52 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rustyx&quot; class=&quot;user-hover&quot; rel=&quot;rustyx&quot;&gt;rustyx&lt;/a&gt; - Definitely looks like that was missed. We will get it fixed.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="295644">CXX-944</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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsmbjr:</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="1064">Platforms 16 (06/24/16)</customfieldvalue>

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