<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:53:38 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>[SERVER-289] don&apos;t pollute global namespaces ( WAS: Mongo #assert squashes other asserts)</title>
                <link>https://jira.mongodb.org/browse/SERVER-289</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When you try to assert something in a file which includes dbclient.h, the mongo assert replaces other asserts which may have been declared.&lt;/p&gt;


&lt;p&gt;EXAMPLE:&lt;/p&gt;

&lt;p&gt;foo.cc:&lt;br/&gt;
#include &amp;lt;cassert&amp;gt;&lt;br/&gt;
#include &amp;lt;mongo/client/dbclient.h&amp;gt;&lt;/p&gt;

&lt;p&gt;int main() {&lt;br/&gt;
  assert(false);&lt;br/&gt;
}&lt;/p&gt;



&lt;p&gt;YIELDS:&lt;/p&gt;

&lt;p&gt;&amp;gt; g++ foo.cc -o foo&lt;br/&gt;
foo.cc: In function &apos;int main()&apos;:&lt;br/&gt;
foo.cc:5: error: &apos;asserted&apos; was not declared in this scope&lt;/p&gt;</description>
                <environment></environment>
        <key id="10581">SERVER-289</key>
            <summary>don&apos;t pollute global namespaces ( WAS: Mongo #assert squashes other asserts)</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="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="jack">Jack Saalweachter</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Sep 2009 17:25:49 +0000</created>
                <updated>Tue, 12 Jul 2016 00:29:40 +0000</updated>
                            <resolved>Fri, 23 Apr 2010 14:32:59 +0000</resolved>
                                                    <fixVersion>1.5.1</fixVersion>
                                    <component>Internal Client</component>
                                        <votes>2</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="13786" author="redbeard0531" created="Fri, 23 Apr 2010 14:32:59 +0000"  >&lt;p&gt;fixed with &lt;a href=&quot;http://github.com/mongodb/mongo/commit/60002a474169de84eac6bce20836ee553abf731c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/60002a474169de84eac6bce20836ee553abf731c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you include mongo/client/cleanup.h it will remove our global macros.&lt;/p&gt;</comment>
                            <comment id="10945" author="eliot" created="Sat, 17 Oct 2009 21:40:12 +0000"  >&lt;p&gt;merged that patch&lt;/p&gt;</comment>
                            <comment id="10944" author="metagoto" created="Sat, 17 Oct 2009 21:25:51 +0000"  >&lt;p&gt;I did a quick fix: moving &apos;using namespace&apos; directives inside the mongo ns declaration in stdafx.h.&lt;br/&gt;
Also needed: add the 2 directives in shell/dbshell.cpp (which is not in the mongo ns)&lt;br/&gt;
I also had to qualify a few shared_ptr with boost:: in util/log.h&lt;/p&gt;

&lt;p&gt;The client part is &apos;fixed&apos;: i can build my project which depends on libmongoclient without names conflicts (even with -std=c++0x)&lt;/p&gt;

&lt;p&gt;My commit is&lt;br/&gt;
&lt;a href=&quot;http://github.com/metagoto/mongo/commit/dbfcac22a173e22b39921017dc4c7ce85016796a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/metagoto/mongo/commit/dbfcac22a173e22b39921017dc4c7ce85016796a&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My master branch is up to date at that time. mongo server, tools, shell and lib compile with both sm and v8 on osx&lt;/p&gt;
</comment>
                            <comment id="10862" author="eliot" created="Thu, 8 Oct 2009 16:36:12 +0000"  >&lt;p&gt;made it compile at least - still squases, just uses mongo::asserted&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 8 Oct 2009 16:36:12 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 43 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>false</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 43 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>jack</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
            <customfieldvalue>metagoto</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpw2n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrivin:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>23759</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnvpj:</customfieldvalue>

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